comparison Meerwald/cmp_frid2_sig.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
86 86
87 if (sig) { 87 if (sig) {
88 fgets(line, sizeof(line), sig); 88 fgets(line, sizeof(line), sig);
89 if (strspn(line, "FR2SG") >= 5) { 89 if (strspn(line, "FR2SG") >= 5) {
90 fscanf(sig, "%d\n", &nbit_signature); 90 fscanf(sig, "%d\n", &nbit_signature);
91 fscanf(sig, "%*lf\n"); 91 fscanf(sig, "%*f\n");
92 fscanf(sig, "%*lf\n"); 92 fscanf(sig, "%*f\n");
93 fscanf(sig, "%*d\n"); 93 fscanf(sig, "%*d\n");
94 n_signature = NBITSTOBYTES(nbit_signature); 94 n_signature = NBITSTOBYTES(nbit_signature);
95 fread(signature, sizeof(char), n_signature, sig); 95 fread(signature, sizeof(char), n_signature, sig);
96 fscanf(sig, "\n"); 96 fscanf(sig, "\n");
97 } 97 }

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