From 530cd5038aa0f6f3f02ef34980b0970b0406f32e Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 16 Feb 2015 21:51:02 +0100 Subject: Don't use negative numbers in exit --- src/yawa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/yawa.c b/src/yawa.c index ff68732..a9b9ef2 100644 --- a/src/yawa.c +++ b/src/yawa.c @@ -359,7 +359,7 @@ main(signed argc, char **argv) Color c; if (parse_color(arguments.solid_color, &c, alpha) == 0) { fprintf(stderr, "Bad color (%s)\n", arguments.solid_color); - exit(-2); + exit(2); } imlib_context_set_color(c.r, c.g, c.b, c.a); imlib_image_fill_rectangle(0, 0, width, height); @@ -373,7 +373,7 @@ main(signed argc, char **argv) Color c; if (parse_color(arguments.add_color[i], &c, alpha) == 0) { fprintf(stderr, "Bad color (%s)\n", arguments.add_color[i]); - exit(-2); + exit(2); } imlib_context_set_color(c.r, c.g, c.b, c.a); imlib_add_color_to_color_range(arguments.distance[i]); @@ -414,7 +414,7 @@ main(signed argc, char **argv) if (parse_color(arguments.tint_color, &c, 255) == 0) { fprintf(stderr, "Bad color\n"); - exit(-2); + exit(2); } imlib_get_color_modifier_tables(r, g, b, a); -- cgit v1.2.3-70-g09d2