diff options
author | Steven Schubiger <stsc@refcnt.org> | 2014-10-01 15:35:55 +0200 |
---|---|---|
committer | Steven Schubiger <stsc@refcnt.org> | 2014-10-01 15:35:55 +0200 |
commit | 42074c795766ce28d82827649824c7ea30306370 (patch) | |
tree | 85f5b5ef8052dffdbbe4addad0b70ad7d9d8eea1 /colorize.c | |
parent | cbc423545a5b9952ef129a2c0bf6905d4b3912a7 (diff) | |
download | colorize-42074c795766ce28d82827649824c7ea30306370.tar.gz colorize-42074c795766ce28d82827649824c7ea30306370.tar.bz2 |
Use more portable exit failure status macro
Diffstat (limited to 'colorize.c')
-rw-r--r-- | colorize.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |