comparison Meerwald/gen_dugad_sig.c @ 15:ad1d224896c5

fix scanf() warning
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Mon, 30 Jun 2008 20:59:01 +0200
parents f83ef905a63d
children 4987db85cfae
comparison
equal deleted inserted replaced
14:1906e659edd0 15:ad1d224896c5
170 if (f == 0) 170 if (f == 0)
171 fscanf(sig, "%d\n", &f); 171 fscanf(sig, "%d\n", &f);
172 else 172 else
173 fscanf(sig, "%*d\n"); 173 fscanf(sig, "%*d\n");
174 if (!strcmp(F, "")) 174 if (!strcmp(F, ""))
175 fscanf(sig, "%[^\n\r]\n", &F); 175 fscanf(sig, "%[^\n\r]\n", F);
176 else 176 else
177 fscanf(sig, "%*[^\n\r]\n"); 177 fscanf(sig, "%*[^\n\r]\n");
178 } 178 }
179 else { 179 else {
180 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); 180 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);

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