Skip to content

Commit

Permalink
fixe _z_sample_create signature
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Jun 25, 2024
1 parent 5f8e54f commit 13d2224
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/net/sample.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void _z_sample_free(_z_sample_t **sample);
void _z_sample_copy(_z_sample_t *dst, const _z_sample_t *src);
_z_sample_t _z_sample_duplicate(const _z_sample_t *src);

_z_sample_t _z_sample_create(const _z_keyexpr_t *key, const _z_bytes_t, _z_timestamp_t timestamp,
_z_sample_t _z_sample_create(const _z_keyexpr_t *key, const _z_bytes_t payload, _z_timestamp_t timestamp,
const _z_encoding_t encoding, const z_sample_kind_t kind, const _z_qos_t qos,
const _z_bytes_t attachment);

Expand Down
2 changes: 1 addition & 1 deletion src/net/sample.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ _z_sample_t _z_sample_create(const _z_keyexpr_t *key, const _z_bytes_t payload,
return s;
}
#else
_z_sample_t _z_sample_create(const _z_keyexpr_t *key, const _z_bytes payload, const _z_timestamp_t timestamp,
_z_sample_t _z_sample_create(const _z_keyexpr_t *key, const _z_bytes_t payload, const _z_timestamp_t timestamp,
const _z_encoding_t encoding, const z_sample_kind_t kind, const _z_qos_t qos,
const _z_bytes_t attachment) {
_ZP_UNUSED(key);
Expand Down

0 comments on commit 13d2224

Please sign in to comment.