diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-07 01:55:58 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2014-11-07 01:55:58 +0100 |
commit | 1df04d698bb4de1a6e8ce3c6f93c5dc551a5a7c4 (patch) | |
tree | 0487ad99648f0a9be89f37e47f46b1f672c78109 | |
parent | 24874acb82671fa17d5988cd6cb6af89ba31e2e3 (diff) | |
download | yawa-1df04d698bb4de1a6e8ce3c6f93c5dc551a5a7c4.tar.xz |
yawa.c: Remove remains of old argument parsing
-rw-r--r-- | src/yawa.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -476,16 +476,12 @@ main (int argc, char **argv) fprintf(stderr, "Bad value (%s)\n", argv[i]); continue; } + imlib_image_blur(intval); } if (arguments.sharpen) { int intval; - if ((++i) >= argc) - { - fprintf(stderr, "Missing value\n"); - continue; - } if (sscanf(argv[i], "%i", &intval) == 0) { fprintf(stderr, "Bad value (%s)\n", argv[i]); @@ -496,11 +492,6 @@ main (int argc, char **argv) if (arguments.contrast) { double dblval; - if ((++i) >= argc) - { - fprintf(stderr, "Missing value\n"); - continue; - } if (sscanf(argv[i], "%lf", &dblval) == 0) { fprintf(stderr, "Bad value (%s)\n", argv[i]); @@ -511,11 +502,6 @@ main (int argc, char **argv) if (arguments.brightness) { double dblval; - if ((++i) >= argc) - { - fprintf(stderr, "Missing value\n"); - continue; - } if (sscanf(argv[i], "%lf", &dblval) == 0) { fprintf(stderr, "Bad value (%s)\n", argv[i]); @@ -526,11 +512,6 @@ main (int argc, char **argv) if (arguments.gamma) { double dblval; - if ((++i) >= argc) - { - fprintf(stderr, "Missing value\n"); - continue; - } if (sscanf(argv[i], "%lf", &dblval) == 0) { fprintf(stderr, "Bad value (%s)\n", argv[i]); |