From 1df04d698bb4de1a6e8ce3c6f93c5dc551a5a7c4 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 7 Nov 2014 01:55:58 +0100 Subject: yawa.c: Remove remains of old argument parsing --- src/yawa.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/yawa.c b/src/yawa.c index 45749a0..269cbce 100644 --- a/src/yawa.c +++ b/src/yawa.c @@ -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]); -- cgit v1.2.3-70-g09d2