comparison Meerwald/cmp_kund3_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
97 if (strspn(line, "KD3SG") >= 5) { 97 if (strspn(line, "KD3SG") >= 5) {
98 fscanf(sig, "%d\n", &nbit_signature1); 98 fscanf(sig, "%d\n", &nbit_signature1);
99 fscanf(sig, "%d\n", &quality); 99 fscanf(sig, "%d\n", &quality);
100 fscanf(sig, "%d\n", &method); 100 fscanf(sig, "%d\n", &method);
101 fscanf(sig, "%d\n", &filter); 101 fscanf(sig, "%d\n", &filter);
102 fscanf(sig, "%[^\n\r]\n", &filter_name); 102 fscanf(sig, "%[^\n\r]\n", filter_name);
103 fscanf(sig, "%d\n", &level); 103 fscanf(sig, "%d\n", &level);
104 fscanf(sig, "%d\n", &seed); 104 fscanf(sig, "%d\n", &seed);
105 srandom(seed); 105 srandom(seed);
106 n_signature1 = NBITSTOBYTES(nbit_signature1); 106 n_signature1 = NBITSTOBYTES(nbit_signature1);
107 107

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