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 }; }