Mercurial > hg > wm
comparison Meerwald/cmp_cox_sig.c @ 8:f83ef905a63d
fixing many warnings
increase capacity for coordinates in bruyn
fix some uninit. variables
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Tue, 22 Apr 2008 13:36:05 +0200 |
parents | be303a3f5ea8 |
children | bd669312f068 |
comparison
equal
deleted
inserted
replaced
7:2b350281f8b0 | 8:f83ef905a63d |
---|---|
22 char output_name[MAXPATHLEN] = "(stdout)"; | 22 char output_name[MAXPATHLEN] = "(stdout)"; |
23 char input_name[MAXPATHLEN] = "(stdin)"; | 23 char input_name[MAXPATHLEN] = "(stdin)"; |
24 | 24 |
25 int c; | 25 int c; |
26 int sig_n, in_n; | 26 int sig_n, in_n; |
27 double sig_a, in_a; | 27 double sig_a; |
28 double sig_mean, sig_variance; | 28 double sig_mean, sig_variance; |
29 double s1, s2, s3; | 29 double s1, s2, s3; |
30 char line[32]; | 30 char line[32]; |
31 | 31 |
32 int verbose = 0; | 32 int verbose = 0; |
73 if (argc > 1) { | 73 if (argc > 1) { |
74 usage(); | 74 usage(); |
75 exit(1); | 75 exit(1); |
76 } | 76 } |
77 | 77 |
78 if (argc == 1 && *argv[0] != '-') | 78 if (argc == 1 && *argv[0] != '-') { |
79 if ((in = fopen(argv[0], "r")) == NULL) { | 79 if ((in = fopen(argv[0], "r")) == NULL) { |
80 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); | 80 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); |
81 exit(1); | 81 exit(1); |
82 } | 82 } |
83 else | 83 else |
84 strcpy(input_name, argv[0]); | 84 strcpy(input_name, argv[0]); |
85 | 85 } |
86 | |
86 if (!sig) { | 87 if (!sig) { |
87 fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname); | 88 fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname); |
88 exit(1); | 89 exit(1); |
89 } | 90 } |
90 | 91 |