comparison Meerwald/wm_corvi_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
138 if (filter == 0) 138 if (filter == 0)
139 fscanf(sig, "%d\n", &filter); 139 fscanf(sig, "%d\n", &filter);
140 else 140 else
141 fscanf(sig, "%*d\n"); 141 fscanf(sig, "%*d\n");
142 if (!strcmp(filter_name, "")) 142 if (!strcmp(filter_name, ""))
143 fscanf(sig, "%[^\n\r]\n", &filter_name); 143 fscanf(sig, "%[^\n\r]\n", filter_name);
144 else 144 else
145 fscanf(sig, "%*[^\n\r]\n"); 145 fscanf(sig, "%*[^\n\r]\n");
146 } 146 }
147 else { 147 else {
148 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); 148 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);

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