summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_api.c
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
commit5518f4b04bc747b0b82836187a08e2af3e3f1178 (patch)
tree431038067a4cc5d090620eb69b405ebaffcc7557 /librabbitmq/amqp_api.c
parentb7b614ae3fe0c450c71fcef6fc5812a158619783 (diff)
downloadrabbitmq-c-5518f4b04bc747b0b82836187a08e2af3e3f1178.tar.gz
Eliminate C99-style initializers in librabbitmq .c files
Diffstat (limited to 'librabbitmq/amqp_api.c')
-rw-r--r--librabbitmq/amqp_api.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/librabbitmq/amqp_api.c b/librabbitmq/amqp_api.c
index a489bea..6c35da7 100644
--- a/librabbitmq/amqp_api.c
+++ b/librabbitmq/amqp_api.c
@@ -135,16 +135,14 @@ int amqp_basic_publish(amqp_connection_state_t state,
size_t usable_body_payload_size = state->frame_max - (HEADER_SIZE + FOOTER_SIZE);
int res;
- amqp_basic_publish_t m =
- (amqp_basic_publish_t) {
- .exchange = exchange,
- .routing_key = routing_key,
- .mandatory = mandatory,
- .immediate = immediate
- };
-
+ amqp_basic_publish_t m;
amqp_basic_properties_t default_properties;
+ m.exchange = exchange;
+ m.routing_key = routing_key;
+ m.mandatory = mandatory;
+ m.immediate = immediate;
+
res = amqp_send_method(state, channel, AMQP_BASIC_PUBLISH_METHOD, &m);
if (res < 0)
return res;