comparison Meerwald/wm_wang_e.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
141 if (strspn(line, "WGSG") >= 4) { 141 if (strspn(line, "WGSG") >= 4) {
142 fscanf(sig, "%d\n", &n); 142 fscanf(sig, "%d\n", &n);
143 if (alpha == 0.0) 143 if (alpha == 0.0)
144 fscanf(sig, "%lf\n", &alpha); 144 fscanf(sig, "%lf\n", &alpha);
145 else 145 else
146 fscanf(sig, "%*lf\n"); 146 fscanf(sig, "%*f\n");
147 if (beta == 0.0) 147 if (beta == 0.0)
148 fscanf(sig, "%lf\n", &beta); 148 fscanf(sig, "%lf\n", &beta);
149 else 149 else
150 fscanf(sig, "%*lf\n"); 150 fscanf(sig, "%*f\n");
151 if (method < 0) 151 if (method < 0)
152 fscanf(sig, "%d\n", &method); 152 fscanf(sig, "%d\n", &method);
153 else 153 else
154 fscanf(sig, "%*d\n"); 154 fscanf(sig, "%*d\n");
155 if (filter == 0) 155 if (filter == 0)

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