comparison Meerwald/wm_kund3_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
comparison
equal deleted inserted replaced
14:1906e659edd0 15:ad1d224896c5
151 if (filter == 0) 151 if (filter == 0)
152 fscanf(sig, "%d\n", &filter); 152 fscanf(sig, "%d\n", &filter);
153 else 153 else
154 fscanf(sig, "%*d\n"); 154 fscanf(sig, "%*d\n");
155 if (!strcmp(filter_name, "")) 155 if (!strcmp(filter_name, ""))
156 fscanf(sig, "%[^\n\r]\n", &filter_name); 156 fscanf(sig, "%[^\n\r]\n", filter_name);
157 else 157 else
158 fscanf(sig, "%*[^\n\r]\n"); 158 fscanf(sig, "%*[^\n\r]\n");
159 if (level == 0) 159 if (level == 0)
160 fscanf(sig, "%d\n", &level); 160 fscanf(sig, "%d\n", &level);
161 else 161 else

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