File tree 2 files changed +6
-2
lines changed
include/zenoh-pico/protocol
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,8 @@ static inline _Bool _z_keyexpr_is_local(const _z_keyexpr_t *key) {
109
109
}
110
110
static inline _z_mapping_t _z_keyexpr_mapping (uint16_t id , _Bool owns_suffix ) {
111
111
assert (id <= _Z_KEYEXPR_MAPPING_UNKNOWN_REMOTE );
112
- return (_z_mapping_t ){._val = (uint16_t )((owns_suffix ? 0x8000 : 0 ) | id )};
112
+ _z_mapping_t mapping = {(uint16_t )((owns_suffix ? 0x8000 : 0 ) | id )};
113
+ return mapping ;
113
114
}
114
115
static inline void _z_keyexpr_set_mapping (_z_keyexpr_t * ke , uint16_t id ) {
115
116
assert (id <= _Z_KEYEXPR_MAPPING_UNKNOWN_REMOTE );
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ _z_keyexpr_t _z_keyexpr_duplicate(_z_keyexpr_t src);
30
30
_z_keyexpr_t _z_keyexpr_to_owned (_z_keyexpr_t src );
31
31
_z_keyexpr_t _z_keyexpr_alias (_z_keyexpr_t src );
32
32
_z_keyexpr_t _z_keyexpr_steal (_Z_MOVE (_z_keyexpr_t ) src );
33
- static inline _z_keyexpr_t _z_keyexpr_null (void ) { return (_z_keyexpr_t ){._id = 0 , ._mapping = {0 }, ._suffix = NULL }; }
33
+ static inline _z_keyexpr_t _z_keyexpr_null (void ) {
34
+ _z_keyexpr_t keyexpr = {0 , {0 }, NULL };
35
+ return keyexpr ;
36
+ }
34
37
_z_timestamp_t _z_timestamp_duplicate (const _z_timestamp_t * tstamp );
35
38
void _z_timestamp_clear (_z_timestamp_t * tstamp );
36
39
void _z_keyexpr_clear (_z_keyexpr_t * rk );
You can’t perform that action at this time.
0 commit comments