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

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