Mercurial > hg > wm
comparison Meerwald/cmp_xia_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 |
comparison
equal
deleted
inserted
replaced
| 7:2b350281f8b0 | 8:f83ef905a63d |
|---|---|
| 78 if (argc > 1) { | 78 if (argc > 1) { |
| 79 usage(); | 79 usage(); |
| 80 exit(1); | 80 exit(1); |
| 81 } | 81 } |
| 82 | 82 |
| 83 if (argc == 1 && *argv[0] != '-') | 83 if (argc == 1 && *argv[0] != '-') { |
| 84 if ((in = fopen(argv[0], "r")) == NULL) { | 84 if ((in = fopen(argv[0], "r")) == NULL) { |
| 85 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); | 85 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); |
| 86 exit(1); | 86 exit(1); |
| 87 } | 87 } |
| 88 else | 88 else |
| 89 strcpy(input_name, argv[0]); | 89 strcpy(input_name, argv[0]); |
| 90 | 90 } |
| 91 | |
| 91 if (!sig) { | 92 if (!sig) { |
| 92 fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname); | 93 fprintf(stderr, "%s: original signature file not specified, use -s file option\n", progname); |
| 93 exit(1); | 94 exit(1); |
| 94 } | 95 } |
| 95 | 96 |
