Mercurial > hg > wm
comparison Meerwald/cmp_xie_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 |
---|---|
94 if (strspn(line, "XESG") >= 4) { | 94 if (strspn(line, "XESG") >= 4) { |
95 fscanf(sig, "%d\n", &nbit_signature1); | 95 fscanf(sig, "%d\n", &nbit_signature1); |
96 fscanf(sig, "%lf\n", &alpha); | 96 fscanf(sig, "%lf\n", &alpha); |
97 fscanf(sig, "%d\n", &method); | 97 fscanf(sig, "%d\n", &method); |
98 fscanf(sig, "%d\n", &filter); | 98 fscanf(sig, "%d\n", &filter); |
99 fscanf(sig, "%[^\n\r]\n", &filter_name); | 99 fscanf(sig, "%[^\n\r]\n", filter_name); |
100 fscanf(sig, "%d\n", &level); | 100 fscanf(sig, "%d\n", &level); |
101 fscanf(sig, "%d\n", &seed); | 101 fscanf(sig, "%d\n", &seed); |
102 srandom(seed); | 102 srandom(seed); |
103 n_signature1 = NBITSTOBYTES(nbit_signature1); | 103 n_signature1 = NBITSTOBYTES(nbit_signature1); |
104 fread(signature1, sizeof(char), n_signature1, sig); | 104 fread(signature1, sizeof(char), n_signature1, sig); |