Mercurial > hg > wm
comparison Meerwald/wm_xia_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 |
---|---|
201 if (filter == 0) | 201 if (filter == 0) |
202 fscanf(sig, "%d\n", &filter); | 202 fscanf(sig, "%d\n", &filter); |
203 else | 203 else |
204 fscanf(sig, "%*d\n"); | 204 fscanf(sig, "%*d\n"); |
205 if (!strcmp(filter_name, "")) | 205 if (!strcmp(filter_name, "")) |
206 fscanf(sig, "%[^\n\r]\n", &filter_name); | 206 fscanf(sig, "%[^\n\r]\n", filter_name); |
207 else | 207 else |
208 fscanf(sig, "%*[^\n\r]\n"); | 208 fscanf(sig, "%*[^\n\r]\n"); |
209 } | 209 } |
210 else { | 210 else { |
211 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 211 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |