summaryrefslogtreecommitdiff
path: root/examples/amqps_unbind.c
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-04-11 10:53:59 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2013-04-17 09:56:29 -0700
commita2a91f532b7e648b2468acad39ae7169ac020d0a (patch)
tree78010b44a0e00011cc17787d144abc7dc358c560 /examples/amqps_unbind.c
parent317a56cfffb05e72713bfa8a8e7236b7c39ddb8d (diff)
downloadrabbitmq-c-github-ask-a2a91f532b7e648b2468acad39ae7169ac020d0a.tar.gz
Fix code formatting to match the rest of the lib
Diffstat (limited to 'examples/amqps_unbind.c')
-rw-r--r--examples/amqps_unbind.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/amqps_unbind.c b/examples/amqps_unbind.c
index a74992a..dfe0f1a 100644
--- a/examples/amqps_unbind.c
+++ b/examples/amqps_unbind.c
@@ -41,7 +41,8 @@
#include "utils.h"
-int main(int argc, char const * const *argv) {
+int main(int argc, char const *const *argv)
+{
char const *hostname;
int port, status;
char const *exchange;
@@ -52,7 +53,7 @@ int main(int argc, char const * const *argv) {
if (argc < 6) {
fprintf(stderr, "Usage: amqps_unbind host port exchange bindingkey queue "
- "[cacert.pem [key.pem cert.pem]]\n");
+ "[cacert.pem [key.pem cert.pem]]\n");
return 1;
}
@@ -90,15 +91,15 @@ int main(int argc, char const * const *argv) {
amqp_set_socket(conn, socket);
die_on_amqp_error(amqp_login(conn, "/", 0, 131072, 0, AMQP_SASL_METHOD_PLAIN, "guest", "guest"),
- "Logging in");
+ "Logging in");
amqp_channel_open(conn, 1);
die_on_amqp_error(amqp_get_rpc_reply(conn), "Opening channel");
amqp_queue_unbind(conn, 1,
- amqp_cstring_bytes(queue),
- amqp_cstring_bytes(exchange),
- amqp_cstring_bytes(bindingkey),
- amqp_empty_table);
+ amqp_cstring_bytes(queue),
+ amqp_cstring_bytes(exchange),
+ amqp_cstring_bytes(bindingkey),
+ 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");