aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steven Schubiger <stsc@refcnt.org> 2014-10-01 15:35:55 +0200
committerGravatar Steven Schubiger <stsc@refcnt.org> 2014-10-01 15:35:55 +0200
commit42074c795766ce28d82827649824c7ea30306370 (patch)
tree85f5b5ef8052dffdbbe4addad0b70ad7d9d8eea1
parentcbc423545a5b9952ef129a2c0bf6905d4b3912a7 (diff)
downloadcolorize-42074c795766ce28d82827649824c7ea30306370.tar.gz
colorize-42074c795766ce28d82827649824c7ea30306370.tar.bz2
Use more portable exit failure status macro
-rw-r--r--colorize.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/colorize.c b/colorize.c
index 7704c3b..5729f0e 100644
--- a/colorize.c
+++ b/colorize.c
@@ -82,12 +82,12 @@
#if !DEBUG
# define MEM_ALLOC_FAIL() do { \
fprintf (stderr, "%s: memory allocation failure\n", program_name); \
- exit (2); \
+ exit (EXIT_FAILURE); \
} while (false)
#else
# define MEM_ALLOC_FAIL_DEBUG(file, line) do { \
fprintf (stderr, "Memory allocation failure in source file %s, line %u\n", file, line); \
- exit (2); \
+ exit (EXIT_FAILURE); \
} while (false)
#endif