summaryrefslogtreecommitdiff
path: root/examples/amqp_bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/amqp_bind.c')
-rw-r--r--examples/amqp_bind.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/amqp_bind.c b/examples/amqp_bind.c
index 1f183a5..561b84d 100644
--- a/examples/amqp_bind.c
+++ b/examples/amqp_bind.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");