From e00d50f034a4e047c0d572f0149bf2c7b250ef69 Mon Sep 17 00:00:00 2001 From: Alexander Bushnev Date: Tue, 10 Sep 2024 18:05:07 +0200 Subject: [PATCH] Fix formatting by clang-format --- src/net/publish.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net/publish.c b/src/net/publish.c index 9d4500a21..4fc7dc1e8 100644 --- a/src/net/publish.c +++ b/src/net/publish.c @@ -35,13 +35,13 @@ void _z_publisher_free(_z_publisher_t **pub) { _Bool _z_publisher_check(const _z_publisher_t *publisher) { return !_Z_RC_IS_NULL(&publisher->_zn); } _z_publisher_t _z_publisher_null(void) { - return (_z_publisher_t) { - ._congestion_control = Z_CONGESTION_CONTROL_DEFAULT, ._id = 0, ._key = _z_keyexpr_null(), - ._priority = Z_PRIORITY_DEFAULT, ._zn = _z_session_weak_null(), + return (_z_publisher_t){._congestion_control = Z_CONGESTION_CONTROL_DEFAULT, + ._id = 0, + ._key = _z_keyexpr_null(), + ._priority = Z_PRIORITY_DEFAULT, + ._zn = _z_session_weak_null(), #if Z_FEATURE_INTEREST == 1 - ._filter = (_z_write_filter_t) { - ._interest_id = 0, .ctx = NULL - } + ._filter = (_z_write_filter_t){._interest_id = 0, .ctx = NULL} #endif }; }