aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-07 01:55:58 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-11-07 01:55:58 +0100
commit1df04d698bb4de1a6e8ce3c6f93c5dc551a5a7c4 (patch)
tree0487ad99648f0a9be89f37e47f46b1f672c78109
parent24874acb82671fa17d5988cd6cb6af89ba31e2e3 (diff)
downloadyawa-1df04d698bb4de1a6e8ce3c6f93c5dc551a5a7c4.tar.xz
yawa.c: Remove remains of old argument parsing
-rw-r--r--src/yawa.c21
1 files changed, 1 insertions, 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]);