diff options
Diffstat (limited to 'examples/utils.c')
-rw-r--r-- | examples/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/utils.c b/examples/utils.c index 0830738..4b00470 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -56,7 +56,8 @@ void die(const char *fmt, ...) exit(1); } -void die_on_error(int x, char const *context) { +void die_on_error(int x, char const *context) +{ if (x < 0) { char *errstr = amqp_error_string(-x); fprintf(stderr, "%s: %s\n", context, errstr); |