From d2297fbf614d5cfc10bcd6d324aebcff76c98dbd Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Fri, 13 Oct 2023 10:13:00 +0200 Subject: [PATCH] chore: run clang-format --- examples/espidf/z_get.c | 4 +--- include/zenoh-pico/session/push.h | 2 +- src/api/api.c | 2 +- src/session/queryable.c | 1 - tests/z_api_null_drop_test.c | 1 - 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/espidf/z_get.c b/examples/espidf/z_get.c index 48de2351d..884dfc2a4 100644 --- a/examples/espidf/z_get.c +++ b/examples/espidf/z_get.c @@ -174,7 +174,5 @@ void app_main() { printf("OK!\n"); } #else -void app_main() { - printf("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it.\n"); -} +void app_main() { printf("ERROR: Zenoh pico was compiled without Z_FEATURE_QUERY but this example requires it.\n"); } #endif \ No newline at end of file diff --git a/include/zenoh-pico/session/push.h b/include/zenoh-pico/session/push.h index 7a65ba38e..583746c15 100644 --- a/include/zenoh-pico/session/push.h +++ b/include/zenoh-pico/session/push.h @@ -21,6 +21,6 @@ #ifndef ZENOH_PICO_SESSION_PUSH_H #define ZENOH_PICO_SESSION_PUSH_H -int8_t _z_trigger_push(_z_session_t *zn, _z_n_msg_push_t *push) ; +int8_t _z_trigger_push(_z_session_t *zn, _z_n_msg_push_t *push); #endif /* ZENOH_PICO_SESSION_PUSH_H */ \ No newline at end of file diff --git a/src/api/api.c b/src/api/api.c index 67443dff2..7f1e0cdc1 100644 --- a/src/api/api.c +++ b/src/api/api.c @@ -713,7 +713,7 @@ z_value_t z_reply_err(const z_owned_reply_t *reply) { #if Z_FEATURE_QUERYABLE == 1 OWNED_FUNCTIONS_PTR_COMMON(z_queryable_t, z_owned_queryable_t, queryable) OWNED_FUNCTIONS_PTR_CLONE(z_queryable_t, z_owned_queryable_t, queryable, _z_owner_noop_copy) -void z_queryable_drop(z_owned_queryable_t *val) { z_undeclare_queryable(val);} +void z_queryable_drop(z_owned_queryable_t *val) { z_undeclare_queryable(val); } z_queryable_options_t z_queryable_options_default(void) { return (z_queryable_options_t){.complete = _Z_QUERYABLE_COMPLETE_DEFAULT}; diff --git a/src/session/queryable.c b/src/session/queryable.c index f84031139..243519b69 100644 --- a/src/session/queryable.c +++ b/src/session/queryable.c @@ -24,7 +24,6 @@ #include "zenoh-pico/session/utils.h" #include "zenoh-pico/utils/logging.h" - #if Z_FEATURE_QUERYABLE == 1 _Bool _z_questionable_eq(const _z_questionable_t *one, const _z_questionable_t *two) { return one->_id == two->_id; } diff --git a/tests/z_api_null_drop_test.c b/tests/z_api_null_drop_test.c index 97774ffb5..6d54fea94 100644 --- a/tests/z_api_null_drop_test.c +++ b/tests/z_api_null_drop_test.c @@ -155,7 +155,6 @@ int main(void) { z_drop(z_move(reply_null_1)); z_drop(z_move(reply_null_2)); #endif - } return 0;