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