Skip to content

Commit

Permalink
Apply clang autoformat
Browse files Browse the repository at this point in the history
  • Loading branch information
sashacmc committed Oct 9, 2024
1 parent 33af156 commit 2120550
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/net/publish.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ 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(), ._encoding = _z_encoding_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(),
._encoding = _z_encoding_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
};
}
Expand Down

0 comments on commit 2120550

Please sign in to comment.