From 9a8a84be2a860bc40e55fc479eb253c750f242af Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Wed, 11 Oct 2023 15:08:28 +0200 Subject: [PATCH] style: run clang-format --- include/zenoh-pico/config.h | 4 ++-- include/zenoh-pico/net/query.h | 2 +- src/api/api.c | 4 ++-- src/session/utils.c | 2 +- tests/z_api_null_drop_test.c | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/zenoh-pico/config.h b/include/zenoh-pico/config.h index c0d258b1b..567eb757d 100644 --- a/include/zenoh-pico/config.h +++ b/include/zenoh-pico/config.h @@ -120,14 +120,14 @@ /** * Enable queryables -*/ + */ #ifndef Z_FEATURE_QUERYABLES #define Z_FEATURE_QUERYABLES 1 #endif /** * Enable queries -*/ + */ #ifndef Z_FEATURE_QUERIES #define Z_FEATURE_QUERIES 1 #endif diff --git a/include/zenoh-pico/net/query.h b/include/zenoh-pico/net/query.h index 9b33dfb67..500b07809 100644 --- a/include/zenoh-pico/net/query.h +++ b/include/zenoh-pico/net/query.h @@ -39,7 +39,7 @@ typedef struct { void *_zn; // FIXME: _z_session_t *zn; } _z_queryable_t; -#if Z_FEATURE_QUERYABLES == 1 +#if Z_FEATURE_QUERYABLES == 1 void _z_queryable_clear(_z_queryable_t *qbl); void _z_queryable_free(_z_queryable_t **qbl); #endif diff --git a/src/api/api.c b/src/api/api.c index d961cde0b..726661669 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -701,7 +701,7 @@ int8_t z_get(z_session_t zs, z_keyexpr_t keyexpr, const char *parameters, z_owne ret = _z_query(zs._val, keyexpr, parameters, opt.target, opt.consolidation.mode, opt.value, __z_reply_handler, wrapped_ctx, callback->drop, ctx); #else - int8_t ret = _Z_ERR_GENERIC; // Not supported + int8_t ret = _Z_ERR_GENERIC; // Not supported #endif return ret; } @@ -934,7 +934,7 @@ z_owned_queryable_t z_declare_queryable(z_session_t zs, z_keyexpr_t keyexpr, z_o return (z_owned_queryable_t){ ._value = _z_declare_queryable(zs._val, key, opt.complete, callback->call, callback->drop, ctx)}; #else - return (z_owned_queryable_t) {._value = NULL }; + return (z_owned_queryable_t){._value = NULL}; #endif } diff --git a/src/session/utils.c b/src/session/utils.c index 717f306d9..63acb6cba 100644 --- a/src/session/utils.c +++ b/src/session/utils.c @@ -104,7 +104,7 @@ void _z_session_clear(_z_session_t *zn) { // Clean up the entities _z_flush_resources(zn); _z_flush_subscriptions(zn); - + #if Z_FEATURE_QUERYABLES == 1 _z_flush_questionables(zn); #endif diff --git a/tests/z_api_null_drop_test.c b/tests/z_api_null_drop_test.c index 15adeba88..84123235d 100644 --- a/tests/z_api_null_drop_test.c +++ b/tests/z_api_null_drop_test.c @@ -142,7 +142,7 @@ int main(void) { z_drop(z_move(closure_hello_null_1)); z_drop(z_move(closure_zid_null_1)); z_drop(z_move(str_null_1)); - + #if Z_FEATURE_QUERIES == 1 z_drop(z_move(reply_null_1)); #endif @@ -162,7 +162,7 @@ int main(void) { z_drop(z_move(closure_hello_null_2)); z_drop(z_move(closure_zid_null_2)); z_drop(z_move(str_null_2)); - + #if Z_FEATURE_QUERIES == 1 z_drop(z_move(reply_null_2)); #endif