diff options
author | David Wragg <david@rabbitmq.com> | 2010-09-03 10:18:55 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-09-03 10:18:55 +0100 |
commit | b85fa81a4076536048ea374094dccbd580a5fe6e (patch) | |
tree | 7985515d5dd7925706eaa82623449b6eaa053b7a /tools/publish.c | |
parent | b339e621a8a85fbd749fdb499161320abed5ebb3 (diff) | |
parent | 1b1340ad50e18edc194f26a7156cab44b8a1bba0 (diff) | |
download | rabbitmq-c-github-ask-bug22951.tar.gz |
Merge amqp_0_9_1 into bug22951 to remove headbug22951
Diffstat (limited to 'tools/publish.c')
-rw-r--r-- | tools/publish.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/publish.c b/tools/publish.c index 21314b2..0917dae 100644 --- a/tools/publish.c +++ b/tools/publish.c @@ -54,8 +54,6 @@ #include <stdlib.h> #include <string.h> -#include <popt.h> - #include "common.h" static void do_publish(amqp_connection_state_t conn, @@ -66,8 +64,7 @@ static void do_publish(amqp_connection_state_t conn, cstring_bytes(exchange), cstring_bytes(routing_key), 0, 0, props, body); - if (res != 0) - die_errno(-res, "basic.publish"); + die_amqp_error(res, "basic.publish"); } int main(int argc, const char **argv) |