diff --git a/examples/z_query_sub.c b/examples/z_query_sub.c index 96ac2049f..eddde1b16 100644 --- a/examples/z_query_sub.c +++ b/examples/z_query_sub.c @@ -25,7 +25,7 @@ struct args_t parse_args(int argc, char** argv, z_owned_config_t* config); const char* kind_to_str(z_sample_kind_t kind); -void data_handler(const z_loaned_sample_t* sample, void* arg) { +void data_handler(z_loaned_sample_t* sample, void* arg) { z_view_string_t key_string; z_keyexpr_as_view_string(z_sample_keyexpr(sample), &key_string); z_owned_string_t payload_string; diff --git a/examples/z_queryable_shm.c b/examples/z_queryable_shm.c index b70b9a843..0ec351b8c 100644 --- a/examples/z_queryable_shm.c +++ b/examples/z_queryable_shm.c @@ -20,7 +20,7 @@ const char *keyexpr = "demo/example/zenoh-c-queryable"; const char *value = "Queryable from C SHM!"; z_view_keyexpr_t ke; -void query_handler(const z_loaned_query_t *query, void *context) { +void query_handler(z_loaned_query_t *query, void *context) { z_loaned_shm_provider_t *provider = (z_loaned_shm_provider_t *)context; z_view_string_t key_string; diff --git a/examples/z_sub_liveliness.c b/examples/z_sub_liveliness.c index b67a2d8b9..73b01582d 100644 --- a/examples/z_sub_liveliness.c +++ b/examples/z_sub_liveliness.c @@ -23,7 +23,7 @@ struct args_t { }; struct args_t parse_args(int argc, char** argv, z_owned_config_t* config); -void data_handler(const z_loaned_sample_t* sample, void* arg) { +void data_handler(z_loaned_sample_t* sample, void* arg) { z_view_string_t key_string; z_keyexpr_as_view_string(z_sample_keyexpr(sample), &key_string); switch (z_sample_kind(sample)) { diff --git a/examples/z_sub_shm.c b/examples/z_sub_shm.c index f6a6fad7e..ce5f5b29a 100644 --- a/examples/z_sub_shm.c +++ b/examples/z_sub_shm.c @@ -17,7 +17,7 @@ const char *kind_to_str(z_sample_kind_t kind); -void data_handler(const z_loaned_sample_t *sample, void *arg) { +void data_handler(z_loaned_sample_t *sample, void *arg) { z_view_string_t key_string; z_keyexpr_as_view_string(z_sample_keyexpr(sample), &key_string);