comparison Meerwald/gen_cox_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
98 else 98 else
99 fscanf(sig, "%*d\n"); 99 fscanf(sig, "%*d\n");
100 if (a == 0.0) 100 if (a == 0.0)
101 fscanf(sig, "%lf\n", &a); 101 fscanf(sig, "%lf\n", &a);
102 else 102 else
103 fscanf(sig, "%*lf\n"); 103 fscanf(sig, "%*f\n");
104 if (m == 0.0) 104 if (m == 0.0)
105 fscanf(sig, "%lf\n", &m); 105 fscanf(sig, "%lf\n", &m);
106 else 106 else
107 fscanf(sig, "%*lf\n"); 107 fscanf(sig, "%*f\n");
108 if (d == 0.0) 108 if (d == 0.0)
109 fscanf(sig, "%lf\n", &d); 109 fscanf(sig, "%lf\n", &d);
110 else 110 else
111 fscanf(sig, "%*lf\n"); 111 fscanf(sig, "%*f\n");
112 } 112 }
113 else { 113 else {
114 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); 114 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name);
115 exit(1); 115 exit(1);
116 } 116 }

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