Mercurial > hg > wm
comparison Meerwald/wm_xie_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 |
|---|---|
| 61 | 61 |
| 62 gray **image; | 62 gray **image; |
| 63 Image_tree dwts, p; | 63 Image_tree dwts, p; |
| 64 | 64 |
| 65 gray maxval; | 65 gray maxval; |
| 66 int rows, cols, colors, format; | 66 int rows, cols, format; |
| 67 | 67 |
| 68 progname = argv[0]; | 68 progname = argv[0]; |
| 69 | 69 |
| 70 pgm_init(&argc, argv); wm_init2(); | 70 pgm_init(&argc, argv); wm_init2(); |
| 71 | 71 |
| 136 if (argc > 1) { | 136 if (argc > 1) { |
| 137 usage(); | 137 usage(); |
| 138 exit(1); | 138 exit(1); |
| 139 } | 139 } |
| 140 | 140 |
| 141 if (argc == 1 && *argv[0] != '-') | 141 if (argc == 1 && *argv[0] != '-') { |
| 142 if ((in = fopen(argv[0], "rb")) == NULL) { | 142 if ((in = fopen(argv[0], "rb")) == NULL) { |
| 143 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); | 143 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); |
| 144 exit(1); | 144 exit(1); |
| 145 } | 145 } |
| 146 else | 146 else |
| 147 strcpy(input_name, argv[0]); | 147 strcpy(input_name, argv[0]); |
| 148 | 148 } |
| 149 | |
| 149 if (sig) { | 150 if (sig) { |
| 150 char line[32]; | 151 char line[32]; |
| 151 fgets(line, sizeof(line), sig); | 152 fgets(line, sizeof(line), sig); |
| 152 if (strspn(line, "XESG") >= 4) { | 153 if (strspn(line, "XESG") >= 4) { |
| 153 fscanf(sig, "%d\n", &nbit_signature); | 154 fscanf(sig, "%d\n", &nbit_signature); |
