comparison Meerwald/wm_corvi_d.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 acb6967ee76d
children ad1d224896c5
comparison
equal deleted inserted replaced
7:2b350281f8b0 8:f83ef905a63d
32 char output_name[MAXPATHLEN] = "(stdout)"; 32 char output_name[MAXPATHLEN] = "(stdout)";
33 char input_name[MAXPATHLEN] = "(stdin)"; 33 char input_name[MAXPATHLEN] = "(stdin)";
34 char orig_name[MAXPATHLEN]; 34 char orig_name[MAXPATHLEN];
35 35
36 int c; 36 int c;
37 int i;
38 int n = 0; 37 int n = 0;
39 int method = -1; 38 int method = -1;
40 int filter = 0; 39 int filter = 0;
41 char filter_name[MAXPATHLEN] = ""; 40 char filter_name[MAXPATHLEN] = "";
42 41
133 if (argc > 1) { 132 if (argc > 1) {
134 usage(); 133 usage();
135 exit(1); 134 exit(1);
136 } 135 }
137 136
138 if (argc == 1 && *argv[0] != '-') 137 if (argc == 1 && *argv[0] != '-') {
139 if ((in = fopen(argv[0], "rb")) == NULL) { 138 if ((in = fopen(argv[0], "rb")) == NULL) {
140 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); 139 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
141 exit(1); 140 exit(1);
142 } 141 }
143 else 142 else
144 strcpy(input_name, argv[0]); 143 strcpy(input_name, argv[0]);
145 144 }
145
146 if (!orig) { 146 if (!orig) {
147 fprintf(stderr, "%s: original image file not specified, use -i file option\n", progname); 147 fprintf(stderr, "%s: original image file not specified, use -i file option\n", progname);
148 exit(1); 148 exit(1);
149 } 149 }
150 150

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