From 1017649c403f5654849ba8743bb4688ec8a7c4ff Mon Sep 17 00:00:00 2001 From: David Wragg Date: Thu, 21 Oct 2010 17:49:04 +0100 Subject: Fix compiler warnings --- tools/declare_queue.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tools') 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; -- cgit v1.2.1