diff --git a/include/zenoh-pico/net/sample.h b/include/zenoh-pico/net/sample.h index 969e91215..0817d9d1e 100644 --- a/include/zenoh-pico/net/sample.h +++ b/include/zenoh-pico/net/sample.h @@ -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); diff --git a/src/net/sample.c b/src/net/sample.c index 9651075a2..14196a668 100644 --- a/src/net/sample.c +++ b/src/net/sample.c @@ -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);