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

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