Mercurial > hg > wm
comparison Meerwald/gen_xia_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 |
---|---|
143 if (f == 0) | 143 if (f == 0) |
144 fscanf(sig, "%d\n", &f); | 144 fscanf(sig, "%d\n", &f); |
145 else | 145 else |
146 fscanf(sig, "%*d\n"); | 146 fscanf(sig, "%*d\n"); |
147 if (!strcmp(F, "")) | 147 if (!strcmp(F, "")) |
148 fscanf(sig, "%[^\n\r]\n", &F); | 148 fscanf(sig, "%[^\n\r]\n", F); |
149 else | 149 else |
150 fscanf(sig, "%*[^\n\r]\n"); | 150 fscanf(sig, "%*[^\n\r]\n"); |
151 } | 151 } |
152 else { | 152 else { |
153 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 153 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |