Skip to content

Commit

Permalink
style: run clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Oct 11, 2023
1 parent e467205 commit 9a8a84b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/zenoh-pico/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion include/zenoh-pico/net/query.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion src/session/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/z_api_null_drop_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9a8a84b

Please sign in to comment.