Mercurial > hg > wm
comparison Meerwald/wm_dugad_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 |
---|---|
191 if (filter == 0) | 191 if (filter == 0) |
192 fscanf(sig, "%d\n", &filter); | 192 fscanf(sig, "%d\n", &filter); |
193 else | 193 else |
194 fscanf(sig, "%*d\n"); | 194 fscanf(sig, "%*d\n"); |
195 if (!strcmp(filter_name, "")) | 195 if (!strcmp(filter_name, "")) |
196 fscanf(sig, "%[^\n\r]\n", &filter_name); | 196 fscanf(sig, "%[^\n\r]\n", filter_name); |
197 else | 197 else |
198 fscanf(sig, "%*[^\n\r]\n"); | 198 fscanf(sig, "%*[^\n\r]\n"); |
199 } | 199 } |
200 else { | 200 else { |
201 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 201 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |