Mercurial > hg > wm
comparison Meerwald/wm_xie2_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 |
---|---|
168 if (filter == 0) | 168 if (filter == 0) |
169 fscanf(sig, "%d\n", &filter); | 169 fscanf(sig, "%d\n", &filter); |
170 else | 170 else |
171 fscanf(sig, "%*d\n"); | 171 fscanf(sig, "%*d\n"); |
172 if (!strcmp(filter_name, "")) | 172 if (!strcmp(filter_name, "")) |
173 fscanf(sig, "%[^\n\r]\n", &filter_name); | 173 fscanf(sig, "%[^\n\r]\n", filter_name); |
174 else | 174 else |
175 fscanf(sig, "%*[^\n\r]\n"); | 175 fscanf(sig, "%*[^\n\r]\n"); |
176 if (quant == 0) | 176 if (quant == 0) |
177 fscanf(sig, "%d\n", &quant); | 177 fscanf(sig, "%d\n", &quant); |
178 else | 178 else |