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 | 6b997da5f6d03f5dc2a8595b3c0a2cf9413b07b2 (patch) | |
tree | 88b7f8f360158d948f1844caa414aafa18af4f9d /examples | |
parent | 5b41470ca661d528dbafadb5865eaaa2a4342c21 (diff) | |
download | rabbitmq-c-github-ask-6b997da5f6d03f5dc2a8595b3c0a2cf9413b07b2.tar.gz |
Eliminate // comments
They are not allowed in ISO C90.
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), |