Mercurial > hg > wm
comparison Meerwald/wm_koch_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 | f83ef905a63d |
children | 824d192e5614 |
comparison
equal
deleted
inserted
replaced
15:ad1d224896c5 | 16:4987db85cfae |
---|---|
116 if (strspn(line, "KCSG") >= 4) { | 116 if (strspn(line, "KCSG") >= 4) { |
117 fscanf(sig, "%d\n", &nbit_signature); | 117 fscanf(sig, "%d\n", &nbit_signature); |
118 if (quality == 0.0) | 118 if (quality == 0.0) |
119 fscanf(sig, "%lf\n", &quality); | 119 fscanf(sig, "%lf\n", &quality); |
120 else | 120 else |
121 fscanf(sig, "%*lf\n"); | 121 fscanf(sig, "%*f\n"); |
122 if (quantization == 0) | 122 if (quantization == 0) |
123 fscanf(sig, "%d\n", &quantization); | 123 fscanf(sig, "%d\n", &quantization); |
124 else | 124 else |
125 fscanf(sig, "%*d\n"); | 125 fscanf(sig, "%*d\n"); |
126 fscanf(sig, "%d\n", &seed); | 126 fscanf(sig, "%d\n", &seed); |