comparison Meerwald/wm_zhu_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
154 if (filter == 0) 154 if (filter == 0)
155 fscanf(sig, "%d\n", &filter); 155 fscanf(sig, "%d\n", &filter);
156 else 156 else
157 fscanf(sig, "%*d\n"); 157 fscanf(sig, "%*d\n");
158 if (!strcmp(filter_name, "")) 158 if (!strcmp(filter_name, ""))
159 fscanf(sig, "%[^\n\r]\n", &filter_name); 159 fscanf(sig, "%[^\n\r]\n", filter_name);
160 else 160 else
161 fscanf(sig, "%*[^\n\r]\n"); 161 fscanf(sig, "%*[^\n\r]\n");
162 } 162 }
163 else { 163 else {
164 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); 164 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);

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