Mercurial > hg > wm
comparison Meerwald/wm_corvi_s.c @ 15:ad1d224896c5
fix scanf() warning
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Mon, 30 Jun 2008 20:59:01 +0200 |
parents | be303a3f5ea8 |
children | 4987db85cfae |
comparison
equal
deleted
inserted
replaced
14:1906e659edd0 | 15:ad1d224896c5 |
---|---|
171 if (filter == 0) | 171 if (filter == 0) |
172 fscanf(sig, "%d\n", &filter); | 172 fscanf(sig, "%d\n", &filter); |
173 else | 173 else |
174 fscanf(sig, "%*d\n"); | 174 fscanf(sig, "%*d\n"); |
175 if (!strcmp(filter_name, "")) | 175 if (!strcmp(filter_name, "")) |
176 fscanf(sig, "%[^\n\r]\n", &filter_name); | 176 fscanf(sig, "%[^\n\r]\n", filter_name); |
177 else | 177 else |
178 fscanf(sig, "%*[^\n\r]\n"); | 178 fscanf(sig, "%*[^\n\r]\n"); |
179 } | 179 } |
180 else { | 180 else { |
181 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 181 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |