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