Mercurial > hg > wm
comparison Meerwald/wm_kim_d.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 |
---|---|
214 if (filter == 0) | 214 if (filter == 0) |
215 fscanf(sig, "%d\n", &filter); | 215 fscanf(sig, "%d\n", &filter); |
216 else | 216 else |
217 fscanf(sig, "%*d\n"); | 217 fscanf(sig, "%*d\n"); |
218 if (!strcmp(filter_name, "")) | 218 if (!strcmp(filter_name, "")) |
219 fscanf(sig, "%[^\n\r]\n", &filter_name); | 219 fscanf(sig, "%[^\n\r]\n", filter_name); |
220 else | 220 else |
221 fscanf(sig, "%*[^\n\r]\n"); | 221 fscanf(sig, "%*[^\n\r]\n"); |
222 } | 222 } |
223 else { | 223 else { |
224 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 224 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |