diff options
Diffstat (limited to 'support/xpthread_check_return.c')
-rw-r--r-- | support/xpthread_check_return.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/xpthread_check_return.c b/support/xpthread_check_return.c index 8781ee1..398f945 100644 --- a/support/xpthread_check_return.c +++ b/support/xpthread_check_return.c @@ -21,6 +21,7 @@ #include <errno.h> #include <stdio.h> #include <stdlib.h> +#include <support/check.h> void xpthread_check_return (const char *function, int value) @@ -28,7 +29,6 @@ xpthread_check_return (const char *function, int value) if (value != 0) { errno = value; - printf ("error: %s: %m\n", function); - exit (1); + FAIL_EXIT1 ("%s: %m", function); } } |