From ae4ec1a06d5b4c9bcb5647cf555aafd4e5f800f7 Mon Sep 17 00:00:00 2001
From: Bartek GÄ…siorzewski <g.bartek@gmail.com>
Date: Mon, 07 May 2018 20:11:57 +0000
Subject: [PATCH] Exit with nonzero status on error

---
 src/utils.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/utils.c b/src/utils.c
index 8c14fb6..1553ff7 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -208,19 +208,19 @@
 {
     perror(s);
     assert(0);
-    exit(-1);
+    exit(1);
 }
 
 void malloc_error()
 {
     fprintf(stderr, "Malloc error\n");
-    exit(-1);
+    exit(1);
 }
 
 void file_error(char *s)
 {
     fprintf(stderr, "Couldn't open file: %s\n", s);
-    exit(0);
+    exit(1);
 }
 
 list *split_str(char *s, char delim)

--
Gitblit v1.10.0