comparison Meerwald/wm_kund2_e.c @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +0200
parents acb6967ee76d
children ad1d224896c5
comparison
equal deleted inserted replaced
7:2b350281f8b0 8:f83ef905a63d
127 if (argc > 1) { 127 if (argc > 1) {
128 usage(); 128 usage();
129 exit(1); 129 exit(1);
130 } 130 }
131 131
132 if (argc == 1 && *argv[0] != '-') 132 if (argc == 1 && *argv[0] != '-') {
133 if ((in = fopen(argv[0], "rb")) == NULL) { 133 if ((in = fopen(argv[0], "rb")) == NULL) {
134 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); 134 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
135 exit(1); 135 exit(1);
136 } 136 }
137 else 137 else
138 strcpy(input_name, argv[0]); 138 strcpy(input_name, argv[0]);
139 139 }
140
140 if (sig) { 141 if (sig) {
141 char line[1024]; 142 char line[1024];
142 fgets(line, sizeof(line), sig); 143 fgets(line, sizeof(line), sig);
143 if (strspn(line, "KD2SG") >= 5) { 144 if (strspn(line, "KD2SG") >= 5) {
144 fscanf(sig, "%d\n", &nbit_signature); 145 fscanf(sig, "%d\n", &nbit_signature);

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.