diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/amqp_consumer.c | 4 | ||||
-rw-r--r-- | examples/amqp_sendstring.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/amqp_consumer.c b/examples/amqp_consumer.c index b1754f5..9341823 100644 --- a/examples/amqp_consumer.c +++ b/examples/amqp_consumer.c @@ -150,8 +150,8 @@ int main(int argc, char const * const *argv) { hostname = argv[1]; port = atoi(argv[2]); - exchange = "amq.direct"; //argv[3]; - bindingkey = "test queue"; //argv[4]; + exchange = "amq.direct"; /* argv[3]; */ + bindingkey = "test queue"; /* argv[4]; */ conn = amqp_new_connection(); diff --git a/examples/amqp_sendstring.c b/examples/amqp_sendstring.c index ccd3866..9808251 100644 --- a/examples/amqp_sendstring.c +++ b/examples/amqp_sendstring.c @@ -94,7 +94,7 @@ int main(int argc, char const * const *argv) { amqp_basic_properties_t props; props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG; props.content_type = amqp_cstring_bytes("text/plain"); - props.delivery_mode = 2; // persistent delivery mode + props.delivery_mode = 2; /* persistent delivery mode */ die_on_error(amqp_basic_publish(conn, 1, amqp_cstring_bytes(exchange), |