Mercurial > hg > wm
comparison Meerwald/cmp_dct.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 | be303a3f5ea8 |
children |
comparison
equal
deleted
inserted
replaced
7:2b350281f8b0 | 8:f83ef905a63d |
---|---|
100 if (argc > 1) { | 100 if (argc > 1) { |
101 usage(); | 101 usage(); |
102 exit(1); | 102 exit(1); |
103 } | 103 } |
104 | 104 |
105 if (argc == 1 && *argv[0] != '-') | 105 if (argc == 1 && *argv[0] != '-') { |
106 if ((in = fopen(argv[0], "rb")) == NULL) { | 106 if ((in = fopen(argv[0], "rb")) == NULL) { |
107 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); | 107 fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); |
108 exit(1); | 108 exit(1); |
109 } | 109 } |
110 else | 110 else |
111 strcpy(input_name, argv[0]); | 111 strcpy(input_name, argv[0]); |
112 | 112 } |
113 | |
113 if (!orig && !no_orig) { | 114 if (!orig && !no_orig) { |
114 fprintf(stderr, "%s: original image file not specified, using zero image\n", progname); | 115 fprintf(stderr, "%s: original image file not specified, using zero image\n", progname); |
115 strcpy(orig_name, "(zero)"); | 116 strcpy(orig_name, "(zero)"); |
116 no_orig = 1; | 117 no_orig = 1; |
117 } | 118 } |