Skip to content

Commit

Permalink
fix: apply PR feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfo committed Dec 4, 2024
1 parent 1b36f8e commit bca36bd
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/protocol/definitions/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,10 @@ _z_transport_message_t _z_t_msg_make_init_syn(z_whatami_t whatami, _z_id_t zid)
}

#if Z_FEATURE_FRAGMENTATION == 1
bool has_patch = msg._body._join._patch != _Z_NO_PATCH;
#else
bool has_patch = false;
#endif
if (has_patch) {
if (msg._body._init._patch != _Z_NO_PATCH) {
_Z_SET_FLAG(msg._header, _Z_FLAG_T_Z);
}
#endif

return msg;
}
Expand Down

0 comments on commit bca36bd

Please sign in to comment.