This is an automated email from the ASF dual-hosted git repository. astitcher pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/qpid-proton.git
commit 7f3320d9941620e33f7553caccd22187474848ee Author: Andrew Stitcher <[email protected]> AuthorDate: Thu Nov 4 11:11:32 2021 +0000 PROTON-2456: Fix for error in PROTON-2427 --- c/examples/direct.c | 2 +- c/examples/send-abort.c | 2 +- c/examples/send-ssl.c | 2 +- c/examples/send.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/c/examples/direct.c b/c/examples/direct.c index 2460c79..ceaaf23 100644 --- a/c/examples/direct.c +++ b/c/examples/direct.c @@ -80,7 +80,7 @@ static void send_message(app_data_t *app, pn_link_t *sender) { /* Construct a message with the map { "sequence": app.sent } */ pn_message_t* message = pn_message(); pn_data_t* body = pn_message_body(message); - pn_message_set_id(message, (pn_atom_t){.type=PN_ULONG, .u.as_uint=app->sent}); + pn_message_set_id(message, (pn_atom_t){.type=PN_ULONG, .u.as_ulong=app->sent}); pn_data_put_map(body); pn_data_enter(body); pn_data_put_string(body, pn_bytes(sizeof("sequence")-1, "sequence")); diff --git a/c/examples/send-abort.c b/c/examples/send-abort.c index e79db79..d683520 100644 --- a/c/examples/send-abort.c +++ b/c/examples/send-abort.c @@ -79,7 +79,7 @@ static pn_bytes_t encode_message(app_data_t* app) { pn_message_t* message = pn_message(); char data[MSG_SIZE + 11] = {0}; pn_data_t* body; - pn_message_set_id(message, (pn_atom_t){.type=PN_ULONG, .u.as_uint=app->sent}); + pn_message_set_id(message, (pn_atom_t){.type=PN_ULONG, .u.as_ulong=app->sent}); body = pn_message_body(message); pn_data_enter(body); pn_data_put_string(body, pn_bytes(MSG_SIZE, data)); diff --git a/c/examples/send-ssl.c b/c/examples/send-ssl.c index e4dc495..5ca7a31 100644 --- a/c/examples/send-ssl.c +++ b/c/examples/send-ssl.c @@ -62,7 +62,7 @@ static pn_bytes_t encode_message(app_data_t* app) { /* Construct a message with the map { "sequence": app.sent } */ pn_message_t* message = pn_message(); pn_data_t* body = pn_message_body(message); - pn_message_set_id(message, (pn_atom_t){.type=PN_ULONG, .u.as_uint=app->sent}); + pn_message_set_id(message, (pn_atom_t){.type=PN_ULONG, .u.as_ulong=app->sent}); pn_data_put_map(body); pn_data_enter(body); pn_data_put_string(body, pn_bytes(sizeof("sequence")-1, "sequence")); diff --git a/c/examples/send.c b/c/examples/send.c index f065db0..22a57f2 100644 --- a/c/examples/send.c +++ b/c/examples/send.c @@ -61,7 +61,7 @@ static void send_message(app_data_t* app, pn_link_t *sender) { pn_data_t* body; pn_message_clear(app->message); body = pn_message_body(app->message); - pn_message_set_id(app->message, (pn_atom_t){.type=PN_ULONG, .u.as_uint=app->sent}); + pn_message_set_id(app->message, (pn_atom_t){.type=PN_ULONG, .u.as_ulong=app->sent}); pn_data_put_map(body); pn_data_enter(body); pn_data_put_string(body, pn_bytes(sizeof("sequence")-1, "sequence")); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
