diff options
Diffstat (limited to 'examples/amqp_unbind.c')
-rw-r--r-- | examples/amqp_unbind.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/amqp_unbind.c b/examples/amqp_unbind.c index 4b92e12..fad3e2b 100644 --- a/examples/amqp_unbind.c +++ b/examples/amqp_unbind.c @@ -56,9 +56,7 @@ #include <amqp.h> #include <amqp_framing.h> -#include <unistd.h> - -#include "example_utils.h" +#include "utils.h" int main(int argc, char const * const *argv) { char const *hostname; @@ -94,7 +92,7 @@ int main(int argc, char const * const *argv) { amqp_cstring_bytes(queue), amqp_cstring_bytes(exchange), amqp_cstring_bytes(bindingkey), - AMQP_EMPTY_TABLE); + amqp_empty_table); die_on_amqp_error(amqp_get_rpc_reply(conn), "Unbinding"); die_on_amqp_error(amqp_channel_close(conn, 1, AMQP_REPLY_SUCCESS), "Closing channel"); |