comparison Meerwald/wm_xie2_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
162 if (filter == 0) 162 if (filter == 0)
163 fscanf(sig, "%d\n", &filter); 163 fscanf(sig, "%d\n", &filter);
164 else 164 else
165 fscanf(sig, "%*d\n"); 165 fscanf(sig, "%*d\n");
166 if (!strcmp(filter_name, "")) 166 if (!strcmp(filter_name, ""))
167 fscanf(sig, "%[^\n\r]\n", &filter_name); 167 fscanf(sig, "%[^\n\r]\n", filter_name);
168 else 168 else
169 fscanf(sig, "%*[^\n\r]\n"); 169 fscanf(sig, "%*[^\n\r]\n");
170 if (quant == 0) 170 if (quant == 0)
171 fscanf(sig, "%d\n", &quant); 171 fscanf(sig, "%d\n", &quant);
172 else 172 else

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