Mercurial > hg > wm
comparison Meerwald/wm_dugad_e.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 |
---|---|
176 if (filter == 0) | 176 if (filter == 0) |
177 fscanf(sig, "%d\n", &filter); | 177 fscanf(sig, "%d\n", &filter); |
178 else | 178 else |
179 fscanf(sig, "%*d\n"); | 179 fscanf(sig, "%*d\n"); |
180 if (!strcmp(filter_name, "")) | 180 if (!strcmp(filter_name, "")) |
181 fscanf(sig, "%[^\n\r]\n", &filter_name); | 181 fscanf(sig, "%[^\n\r]\n", filter_name); |
182 else | 182 else |
183 fscanf(sig, "%*[^\n\r]\n"); | 183 fscanf(sig, "%*[^\n\r]\n"); |
184 } | 184 } |
185 else { | 185 else { |
186 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 186 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |