Mercurial > hg > wm
comparison Meerwald/wm_corvi_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 |
---|---|
43 | 43 |
44 gray **image; | 44 gray **image; |
45 Image_tree dwts; | 45 Image_tree dwts; |
46 | 46 |
47 gray maxval; | 47 gray maxval; |
48 int rows, cols, colors, format; | 48 int rows, cols, format; |
49 | 49 |
50 progname = argv[0]; | 50 progname = argv[0]; |
51 | 51 |
52 pgm_init(&argc, argv); wm_init(); | 52 pgm_init(&argc, argv); wm_init(); |
53 | 53 |
111 if (argc > 1) { | 111 if (argc > 1) { |
112 usage(); | 112 usage(); |
113 exit(1); | 113 exit(1); |
114 } | 114 } |
115 | 115 |
116 if (argc == 1 && *argv[0] != '-') | 116 if (argc == 1 && *argv[0] != '-') { |
117 if ((in = fopen(argv[0], "rb")) == NULL) { | 117 if ((in = fopen(argv[0], "rb")) == NULL) { |
118 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); | 118 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); |
119 exit(1); | 119 exit(1); |
120 } | 120 } |
121 else | 121 else |
122 strcpy(input_name, argv[0]); | 122 strcpy(input_name, argv[0]); |
123 } | |
123 | 124 |
124 if (sig) { | 125 if (sig) { |
125 char line[32]; | 126 char line[32]; |
126 fgets(line, sizeof(line), sig); | 127 fgets(line, sizeof(line), sig); |
127 if (strspn(line, "CVSG") >= 4) { | 128 if (strspn(line, "CVSG") >= 4) { |