diff options
author | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
---|---|---|
committer | David Wragg <david@rabbitmq.com> | 2010-10-21 17:49:04 +0100 |
commit | 1017649c403f5654849ba8743bb4688ec8a7c4ff (patch) | |
tree | 06e27f49b78a5cc491aab2076d1a7afd35ed2e02 /tools | |
parent | c72bba9de479902e864e3a6802c934cf7fb45e39 (diff) | |
download | rabbitmq-c-github-ask-1017649c403f5654849ba8743bb4688ec8a7c4ff.tar.gz |
Fix compiler warnings
Diffstat (limited to 'tools')
-rw-r--r-- | tools/declare_queue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/declare_queue.c b/tools/declare_queue.c index 7ef7eb6..145a15e 100644 --- a/tools/declare_queue.c +++ b/tools/declare_queue.c @@ -89,11 +89,10 @@ int main(int argc, const char **argv) 0, 0, amqp_empty_table); - if (reply == NULL) { + if (reply == NULL) die_rpc(amqp_get_rpc_reply(conn), "queue.declare"); - } - write(1, reply->queue.bytes, reply->queue.len); - write(1, "\n", strlen("\n")); + + printf("%.*s\n", (int)reply->queue.len, (char *)reply->queue.bytes); } close_connection(conn); return 0; |