diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2013-06-13 13:58:58 -0700 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2013-06-13 16:40:37 -0700 |
commit | 4d9f3abcc30bc628dd872d83233de8744136547d (patch) | |
tree | bc1873175e2cc7dffe5f82334109092d006680fe /examples | |
parent | 0218bb262b9323f431ed84f5c1d1eb1c5bdb1c8b (diff) | |
download | rabbitmq-c-4d9f3abcc30bc628dd872d83233de8744136547d.tar.gz |
Change amqp_error_string() to ret static strings
This is an API/ABI break.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/utils.c b/examples/utils.c index 4b00470..5d4a1f9 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -59,9 +59,7 @@ void die(const char *fmt, ...) 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); - free(errstr); + fprintf(stderr, "%s: %s\n", context, amqp_error_string(x)); exit(1); } } |