Mercurial > hg > wm
comparison Meerwald/cmp_xie2_sig.c @ 15:ad1d224896c5
fix scanf() warning
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Mon, 30 Jun 2008 20:59:01 +0200 |
parents | f83ef905a63d |
children |
comparison
equal
deleted
inserted
replaced
14:1906e659edd0 | 15:ad1d224896c5 |
---|---|
95 if (strspn(line, "XE2SG") >= 5) { | 95 if (strspn(line, "XE2SG") >= 5) { |
96 fscanf(sig, "%d\n", &nbit_signature1); | 96 fscanf(sig, "%d\n", &nbit_signature1); |
97 fscanf(sig, "%lf\n", &alpha); | 97 fscanf(sig, "%lf\n", &alpha); |
98 fscanf(sig, "%d\n", &method); | 98 fscanf(sig, "%d\n", &method); |
99 fscanf(sig, "%d\n", &filter); | 99 fscanf(sig, "%d\n", &filter); |
100 fscanf(sig, "%[^\n\r]\n", &filter_name); | 100 fscanf(sig, "%[^\n\r]\n", filter_name); |
101 fscanf(sig, "%d\n", &quant); | 101 fscanf(sig, "%d\n", &quant); |
102 fscanf(sig, "%d\n", &level); | 102 fscanf(sig, "%d\n", &level); |
103 fscanf(sig, "%d\n", &seed); | 103 fscanf(sig, "%d\n", &seed); |
104 srandom(seed); | 104 srandom(seed); |
105 n_signature1 = NBITSTOBYTES(nbit_signature1); | 105 n_signature1 = NBITSTOBYTES(nbit_signature1); |