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