]> git.refcnt.org Git - colorize.git/commitdiff
Use more portable exit failure status macro
authorSteven Schubiger <stsc@refcnt.org>
Wed, 1 Oct 2014 13:35:55 +0000 (15:35 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Wed, 1 Oct 2014 13:35:55 +0000 (15:35 +0200)
colorize.c

index 7704c3b8f94af8e2befcdd95f03310d0dc9d5151..5729f0e24c56e3b48cac1e1fe6c6e7f4a3aa07ea 100644 (file)
 #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