Skip to content

Commit

Permalink
fix z_id_to_string signature
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Sep 12, 2024
1 parent 67cfa0b commit 51fd2d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/zenoh-pico/api/primitives.h
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,7 @@ z_id_t z_info_zid(const z_loaned_session_t *zs);
* Return:
* ``0`` if operation successful, ``negative value`` otherwise.
*/
z_result_t z_id_to_string(z_id_t *id, z_owned_string_t *str);
z_result_t z_id_to_string(const z_id_t *id, z_owned_string_t *str);

/**
* Gets the keyexpr from a sample by aliasing it.
Expand Down
2 changes: 1 addition & 1 deletion src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,7 @@ int8_t z_info_routers_zid(const z_loaned_session_t *zs, z_moved_closure_zid_t *c

z_id_t z_info_zid(const z_loaned_session_t *zs) { return _Z_RC_IN_VAL(zs)->_local_zid; }

z_result_t z_id_to_string(z_id_t *id, z_owned_string_t *str) {
z_result_t z_id_to_string(const z_id_t *id, z_owned_string_t *str) {
_z_slice_t buf = _z_slice_alias_buf(id->id, sizeof(id->id));
str->_val = _z_string_convert_bytes(&buf);
if (!_z_string_check(&str->_val)) {
Expand Down

0 comments on commit 51fd2d4

Please sign in to comment.