diff --git a/tests/z_api_liveliness.c b/tests/z_api_liveliness.c index 7fe13dc6c..c7465132a 100644 --- a/tests/z_api_liveliness.c +++ b/tests/z_api_liveliness.c @@ -30,7 +30,7 @@ typedef struct context_t { const char* token1_expr = "zenoh/liveliness/test/1"; const char* token2_expr = "zenoh/liveliness/test/2"; -void on_receive(const z_loaned_sample_t* s, void* context) { +void on_receive(z_loaned_sample_t* s, void* context) { context_t* c = (context_t*)context; const z_loaned_keyexpr_t* k = z_sample_keyexpr(s); z_view_string_t ks; diff --git a/tests/z_int_pub_cache_query_sub_test.c b/tests/z_int_pub_cache_query_sub_test.c index ea2babd1f..695b939cd 100644 --- a/tests/z_int_pub_cache_query_sub_test.c +++ b/tests/z_int_pub_cache_query_sub_test.c @@ -91,7 +91,7 @@ int run_publisher() { return 0; } -void data_handler(const z_loaned_sample_t *sample, void *arg) { +void data_handler(z_loaned_sample_t *sample, void *arg) { static int val_num = 0; z_view_string_t keystr; z_keyexpr_as_view_string(z_sample_keyexpr(sample), &keystr);