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 | 51345a3ded6ecd073921b7e83ec06bbd8988c345 (patch) | |
tree | aac2e1213ecf426d5e68e24ea08fcce8d7602289 /examples/amqp_consumer.c | |
parent | ba49cb334a0a9ff96956c22ea6eab8920123c6a2 (diff) | |
download | rabbitmq-c-51345a3ded6ecd073921b7e83ec06bbd8988c345.tar.gz |
Eliminate the AMQP_EMPTY_* macros from amqp.h
Hooray, amqp.h is now ISO C90 clean.
Diffstat (limited to 'examples/amqp_consumer.c')
-rw-r--r-- | examples/amqp_consumer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/amqp_consumer.c b/examples/amqp_consumer.c index 9341823..2a0d9b9 100644 --- a/examples/amqp_consumer.c +++ b/examples/amqp_consumer.c @@ -163,8 +163,8 @@ int main(int argc, char const * const *argv) { die_on_amqp_error(amqp_get_rpc_reply(conn), "Opening channel"); { - amqp_queue_declare_ok_t *r = amqp_queue_declare(conn, 1, AMQP_EMPTY_BYTES, 0, 0, 0, 1, - AMQP_EMPTY_TABLE); + amqp_queue_declare_ok_t *r = amqp_queue_declare(conn, 1, amqp_empty_bytes, 0, 0, 0, 1, + amqp_empty_table); die_on_amqp_error(amqp_get_rpc_reply(conn), "Declaring queue"); queuename = amqp_bytes_malloc_dup(r->queue); if (queuename.bytes == NULL) { @@ -174,10 +174,10 @@ int main(int argc, char const * const *argv) { } amqp_queue_bind(conn, 1, queuename, amqp_cstring_bytes(exchange), amqp_cstring_bytes(bindingkey), - AMQP_EMPTY_TABLE); + amqp_empty_table); die_on_amqp_error(amqp_get_rpc_reply(conn), "Binding queue"); - amqp_basic_consume(conn, 1, queuename, AMQP_EMPTY_BYTES, 0, 1, 0, AMQP_EMPTY_TABLE); + amqp_basic_consume(conn, 1, queuename, amqp_empty_bytes, 0, 1, 0, amqp_empty_table); die_on_amqp_error(amqp_get_rpc_reply(conn), "Consuming"); run(conn); |