comparison Meerwald/wm_zhu_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
140 if (strspn(line, "ZHSG") >= 4) { 140 if (strspn(line, "ZHSG") >= 4) {
141 fscanf(sig, "%d\n", &n); 141 fscanf(sig, "%d\n", &n);
142 if (alpha == 0.0) 142 if (alpha == 0.0)
143 fscanf(sig, "%lf\n", &alpha); 143 fscanf(sig, "%lf\n", &alpha);
144 else 144 else
145 fscanf(sig, "%*lf\n"); 145 fscanf(sig, "%*f\n");
146 if (level == 0) 146 if (level == 0)
147 fscanf(sig, "%d\n", &level); 147 fscanf(sig, "%d\n", &level);
148 else 148 else
149 fscanf(sig, "%*d\n"); 149 fscanf(sig, "%*d\n");
150 if (method < 0) 150 if (method < 0)

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