From 5601842b2a9868d66b4bf21539fe79d7cc1dda6c Mon Sep 17 00:00:00 2001
From: Rafal Kupiec <belliash@codingworkshop.eu.org>
Date: Tue, 2 Feb 2021 18:20:19 +0100
Subject: [PATCH] Return 0 when printing help or version in the windres tool.

---
 tools/windres.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/windres.c b/tools/windres.c
index 5171ad3..7a07360 100644
--- a/tools/windres.c
+++ b/tools/windres.c
@@ -87,7 +87,7 @@ static
 void print_version(void)
 {
     printf("XTchain windres (GNU windres compatible) %s\n", WINDRES_VERSION);
-    exit(-1);
+    exit(0);
 }
 
 static
@@ -126,7 +126,7 @@ void print_help(void)
     "  pei-x86-64\n"
     "  pe-i386\n"
     "  pei-i386\n");
-    exit(1);
+    exit(0);
 }
 
 static