comparison Meerwald/wm_wang_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
182 if (filter == 0) 182 if (filter == 0)
183 fscanf(sig, "%d\n", &filter); 183 fscanf(sig, "%d\n", &filter);
184 else 184 else
185 fscanf(sig, "%*d\n"); 185 fscanf(sig, "%*d\n");
186 if (!strcmp(filter_name, "")) 186 if (!strcmp(filter_name, ""))
187 fscanf(sig, "%[^\n\r]\n", &filter_name); 187 fscanf(sig, "%[^\n\r]\n", filter_name);
188 else 188 else
189 fscanf(sig, "%*[^\n\r]\n"); 189 fscanf(sig, "%*[^\n\r]\n");
190 } 190 }
191 else { 191 else {
192 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); 192 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);

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