Mercurial > hg > wm
comparison Meerwald/wm_kund3_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 |
---|---|
46 | 46 |
47 gray **image; | 47 gray **image; |
48 Image_tree dwts, p; | 48 Image_tree dwts, p; |
49 | 49 |
50 gray maxval; | 50 gray maxval; |
51 int rows, cols, colors, format; | 51 int rows, cols, format; |
52 | 52 |
53 progname = argv[0]; | 53 progname = argv[0]; |
54 | 54 |
55 pgm_init(&argc, argv); | 55 pgm_init(&argc, argv); |
56 wm_init(); | 56 wm_init(); |
122 if (argc > 1) { | 122 if (argc > 1) { |
123 usage(); | 123 usage(); |
124 exit(1); | 124 exit(1); |
125 } | 125 } |
126 | 126 |
127 if (argc == 1 && *argv[0] != '-') | 127 if (argc == 1 && *argv[0] != '-') { |
128 if ((in = fopen(argv[0], "rb")) == NULL) { | 128 if ((in = fopen(argv[0], "rb")) == NULL) { |
129 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); | 129 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); |
130 exit(1); | 130 exit(1); |
131 } | 131 } |
132 else | 132 else |
133 strcpy(input_name, argv[0]); | 133 strcpy(input_name, argv[0]); |
134 | 134 } |
135 | |
135 if (sig) { | 136 if (sig) { |
136 char line[32]; | 137 char line[32]; |
137 fgets(line, sizeof(line), sig); | 138 fgets(line, sizeof(line), sig); |
138 if (strspn(line, "KD3SG") >= 5) { | 139 if (strspn(line, "KD3SG") >= 5) { |
139 fscanf(sig, "%d\n", &nbit_signature); | 140 fscanf(sig, "%d\n", &nbit_signature); |