comparison Meerwald/wm_frid2_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
comparison
equal deleted inserted replaced
15:ad1d224896c5 16:4987db85cfae
124 if (strspn(line, "FR2SG") >= 5) { 124 if (strspn(line, "FR2SG") >= 5) {
125 fscanf(sig, "%d\n", &nbit_signature); 125 fscanf(sig, "%d\n", &nbit_signature);
126 if (alpha == 0.0) 126 if (alpha == 0.0)
127 fscanf(sig, "%lf\n", &alpha); 127 fscanf(sig, "%lf\n", &alpha);
128 else 128 else
129 fscanf(sig, "%*lf\n"); 129 fscanf(sig, "%*f\n");
130 if (gamma == 0.0) 130 if (gamma == 0.0)
131 fscanf(sig, "%lf\n", &gamma); 131 fscanf(sig, "%lf\n", &gamma);
132 else 132 else
133 fscanf(sig, "%*lf\n"); 133 fscanf(sig, "%*f\n");
134 134
135 fscanf(sig, "%d\n", &seed); 135 fscanf(sig, "%d\n", &seed);
136 n_signature = NBITSTOBYTES(nbit_signature); 136 n_signature = NBITSTOBYTES(nbit_signature);
137 fread(signature, sizeof(char), n_signature, sig); 137 fread(signature, sizeof(char), n_signature, sig);
138 fscanf(sig, "\n"); 138 fscanf(sig, "\n");

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