Mercurial > hg > wm
diff Meerwald/wm_xia_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 |
line wrap: on
line diff
--- a/Meerwald/wm_xia_d.c Wed Apr 16 15:55:52 2008 +0200 +++ b/Meerwald/wm_xia_d.c Tue Apr 22 13:36:05 2008 +0200 @@ -65,8 +65,7 @@ char input_name[MAXPATHLEN] = "(stdin)"; char orig_name[MAXPATHLEN]; - int c, w; - int i; + int c; int n = 0; int method = -1; int filter = 0; @@ -80,7 +79,7 @@ int orig_rows, orig_cols, orig_format; gray orig_maxval; int rows, cols; - int row, col; + int row; double *watermark; @@ -168,14 +167,15 @@ exit(1); } - if (argc == 1 && *argv[0] != '-') + if (argc == 1 && *argv[0] != '-') { if ((in = fopen(argv[0], "rb")) == NULL) { fprintf(stderr, "%s: unable to open input file %s\n", progname, argv[0]); exit(1); } else strcpy(input_name, argv[0]); - + } + if (!orig) { fprintf(stderr, "%s: original image file not specified, use -i file option\n", progname); exit(1);