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

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