comparison Meerwald/wm_xie2_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
63 63
64 gray **image; 64 gray **image;
65 Image_tree dwts, p; 65 Image_tree dwts, p;
66 66
67 gray maxval; 67 gray maxval;
68 int rows, cols, colors, format; 68 int rows, cols, format;
69 69
70 progname = argv[0]; 70 progname = argv[0];
71 71
72 pgm_init(&argc, argv); wm_init2(); 72 pgm_init(&argc, argv); wm_init2();
73 73
141 if (argc > 1) { 141 if (argc > 1) {
142 usage(); 142 usage();
143 exit(1); 143 exit(1);
144 } 144 }
145 145
146 if (argc == 1 && *argv[0] != '-') 146 if (argc == 1 && *argv[0] != '-') {
147 if ((in = fopen(argv[0], "rb")) == NULL) { 147 if ((in = fopen(argv[0], "rb")) == NULL) {
148 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); 148 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]);
149 exit(1); 149 exit(1);
150 } 150 }
151 else 151 else
152 strcpy(input_name, argv[0]); 152 strcpy(input_name, argv[0]);
153 }
153 154
154 if (sig) { 155 if (sig) {
155 char line[32]; 156 char line[32];
156 fgets(line, sizeof(line), sig); 157 fgets(line, sizeof(line), sig);
157 if (strspn(line, "XE2SG") >= 5) { 158 if (strspn(line, "XE2SG") >= 5) {

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