Mercurial > hg > wm
comparison Meerwald/wm_wang_d.c @ 16:4987db85cfae
fix another scanf() warning
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Mon, 30 Jun 2008 21:03:40 +0200 |
parents | ad1d224896c5 |
children |
comparison
equal
deleted
inserted
replaced
15:ad1d224896c5 | 16:4987db85cfae |
---|---|
168 if (strspn(line, "WGSG") >= 4) { | 168 if (strspn(line, "WGSG") >= 4) { |
169 fscanf(sig, "%d\n", &n); | 169 fscanf(sig, "%d\n", &n); |
170 if (alpha == 0.0) | 170 if (alpha == 0.0) |
171 fscanf(sig, "%lf\n", &alpha); | 171 fscanf(sig, "%lf\n", &alpha); |
172 else | 172 else |
173 fscanf(sig, "%*lf\n"); | 173 fscanf(sig, "%*f\n"); |
174 if (beta == 0.0) | 174 if (beta == 0.0) |
175 fscanf(sig, "%lf\n", &beta); | 175 fscanf(sig, "%lf\n", &beta); |
176 else | 176 else |
177 fscanf(sig, "%*lf\n"); | 177 fscanf(sig, "%*f\n"); |
178 if (method < 0) | 178 if (method < 0) |
179 fscanf(sig, "%d\n", &method); | 179 fscanf(sig, "%d\n", &method); |
180 else | 180 else |
181 fscanf(sig, "%*d\n"); | 181 fscanf(sig, "%*d\n"); |
182 if (filter == 0) | 182 if (filter == 0) |