Mercurial > hg > wm
comparison Meerwald/wm_cox_e.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 if (strspn(line, "CXSG") >= 4) { | 98 if (strspn(line, "CXSG") >= 4) { |
99 fscanf(sig, "%d\n", &n); | 99 fscanf(sig, "%d\n", &n); |
100 if (alpha == 0.0) | 100 if (alpha == 0.0) |
101 fscanf(sig, "%lf\n", &alpha); | 101 fscanf(sig, "%lf\n", &alpha); |
102 else | 102 else |
103 fscanf(sig, "%*lf\n"); | 103 fscanf(sig, "%*f\n"); |
104 fscanf(sig, "%*lf\n"); | 104 fscanf(sig, "%*f\n"); |
105 fscanf(sig, "%*lf\n"); | 105 fscanf(sig, "%*f\n"); |
106 } | 106 } |
107 else { | 107 else { |
108 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); | 108 fprintf(stderr, "%s: invalid signature file %s\n", progname, signature_name); |
109 exit(1); | 109 exit(1); |
110 } | 110 } |