diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-02-16 21:51:02 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-02-16 21:51:02 +0100 |
commit | 530cd5038aa0f6f3f02ef34980b0970b0406f32e (patch) | |
tree | 58c00a82d4917904083cb27dd2dce536d335daac | |
parent | 0a03e38bc37cdbd54de75691fb9ee9f236ef46c7 (diff) | |
download | yawa-530cd5038aa0f6f3f02ef34980b0970b0406f32e.tar.xz |
Don't use negative numbers in exit
-rw-r--r-- | src/yawa.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |