summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciek Borzecki <maciek.borzecki@gmail.com>2015-05-15 08:06:53 +0200
committerAlan Antonuk <alan.antonuk@gmail.com>2015-05-18 21:31:10 -0700
commitabbefd49e1388b0f6970a86bcb57803e78a8a259 (patch)
treebd1ec581f0dcc1bd6181dfc532b88f6fbe84131b
parent22a36db4b8d3ab6b05861912dd42dbaaf1970d01 (diff)
downloadrabbitmq-c-abbefd49e1388b0f6970a86bcb57803e78a8a259.tar.gz
amqp_socket: fix C89 compatibility
If building with a compiler that does not support C99, this would raise a warning.
-rw-r--r--librabbitmq/amqp_socket.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index 7cde7be..e33adf3 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -960,7 +960,8 @@ int amqp_simple_wait_method(amqp_connection_state_t state,
amqp_method_number_t expected_method,
amqp_method_t *output)
{
- amqp_method_number_t expected_methods[] = { expected_method, 0 };
+ amqp_method_number_t expected_methods[] = { 0, 0 };
+ expected_methods[0] = expected_method;
return amqp_simple_wait_method_list(state, expected_channel, expected_methods,
output);
}