comparison Meerwald/wm_kim_a.c @ 15:ad1d224896c5

fix scanf() warning
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Mon, 30 Jun 2008 20:59:01 +0200
parents acb6967ee76d
children 4987db85cfae
comparison
equal deleted inserted replaced
14:1906e659edd0 15:ad1d224896c5
197 if (filter == 0) 197 if (filter == 0)
198 fscanf(sig, "%d\n", &filter); 198 fscanf(sig, "%d\n", &filter);
199 else 199 else
200 fscanf(sig, "%*d\n"); 200 fscanf(sig, "%*d\n");
201 if (!strcmp(filter_name, "")) 201 if (!strcmp(filter_name, ""))
202 fscanf(sig, "%[^\n\r]\n", &filter_name); 202 fscanf(sig, "%[^\n\r]\n", filter_name);
203 else 203 else
204 fscanf(sig, "%*[^\n\r]\n"); 204 fscanf(sig, "%*[^\n\r]\n");
205 } 205 }
206 else { 206 else {
207 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); 207 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.