Skip to content

Commit

Permalink
Update src/protocol/definitions/transport.c
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bushnev <[email protected]>
  • Loading branch information
wyfo and sashacmc authored Dec 4, 2024
1 parent 0c5f62b commit 0f2a139
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/protocol/definitions/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,10 @@ _z_transport_message_t _z_t_msg_make_init_ack(z_whatami_t whatami, _z_id_t zid,
}

#if Z_FEATURE_FRAGMENTATION == 1
bool has_patch = msg._body._init._patch != _Z_NO_PATCH;
#else
bool has_patch = false;
#endif
if (has_patch == true) {
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 0f2a139

Please sign in to comment.