Skip to content

Commit

Permalink
Embedded platforms type alignement
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Nov 4, 2024
1 parent 16b3785 commit ee58cab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/session/interest.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ static z_result_t _z_interest_send_decl_token(_z_session_t *zn, uint32_t interes
_z_keyexpr_intmap_iterator_t iter = _z_keyexpr_intmap_iterator_make(&token_list);
while (_z_keyexpr_intmap_iterator_next(&iter)) {
// Build the declare message to send on the wire
size_t id = _z_keyexpr_intmap_iterator_key(&iter);
uint32_t id = (uint32_t)_z_keyexpr_intmap_iterator_key(&iter);
_z_keyexpr_t key = *_z_keyexpr_intmap_iterator_value(&iter);
_z_declaration_t declaration = _z_make_decl_token(&key, id);
_z_network_message_t n_msg = _z_n_msg_make_declare(declaration, true, interest_id);
Expand Down
6 changes: 3 additions & 3 deletions src/session/liveliness.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ z_result_t _z_liveliness_register_pending_query(_z_session_t *zn, uint32_t id, _
const _z_liveliness_pending_query_t *pq =
_z_liveliness_pending_query_intmap_get(&zn->_liveliness_pending_queries, id);
if (pq != NULL) {
_Z_ERROR("Duplicate liveliness query id %u", id);
_Z_ERROR("Duplicate liveliness query id %i", (int)id);
ret = _Z_ERR_ENTITY_DECLARATION_FAILED;
} else {
_z_liveliness_pending_query_intmap_insert(&zn->_liveliness_pending_queries, id,
Expand Down Expand Up @@ -160,7 +160,7 @@ z_result_t _z_liveliness_subscription_declare(_z_session_t *zn, uint32_t id, con

const _z_keyexpr_t *pkeyexpr = _z_keyexpr_intmap_get(&zn->_remote_tokens, id);
if (pkeyexpr != NULL) {
_Z_ERROR("Duplicate token id %u", id);
_Z_ERROR("Duplicate token id %i", (int)id);
ret = _Z_ERR_ENTITY_DECLARATION_FAILED;
} else {
_z_keyexpr_intmap_insert(&zn->_remote_tokens, id, _z_keyexpr_clone(&keyexpr));
Expand Down Expand Up @@ -203,7 +203,7 @@ z_result_t _z_liveliness_register_token(_z_session_t *zn, uint32_t id, const _z_

const _z_keyexpr_t *pkeyexpr = _z_keyexpr_intmap_get(&zn->_local_tokens, id);
if (pkeyexpr != NULL) {
_Z_ERROR("Duplicate token id %u", id);
_Z_ERROR("Duplicate token id %i", (int)id);
ret = _Z_ERR_ENTITY_DECLARATION_FAILED;
} else {
_z_keyexpr_intmap_insert(&zn->_local_tokens, id, _z_keyexpr_clone(&keyexpr));
Expand Down

0 comments on commit ee58cab

Please sign in to comment.