Skip to content

Commit

Permalink
make _z_n_qos_unmake static inline to prevent linking errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Feb 16, 2024
1 parent 6e10617 commit 29fca01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zenoh-pico/protocol/definitions/network.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ typedef struct {

#define _z_n_qos_make(express, nodrop, priority) \
(_z_n_qos_t) { ._val = (((express) << 4) | ((nodrop) << 3) | (priority)) }
inline _z_qos_t _z_n_qos_unmake(_z_n_qos_t n_qos) {
static inline _z_qos_t _z_n_qos_unmake(_z_n_qos_t n_qos) {
_z_qos_t qos;
qos.priority = (z_priority_t)(n_qos._val & 0x07 /* 0b111 */);
qos.congestion_control = (n_qos._val & 0x08 /* 0b1000 */) ? Z_CONGESTION_CONTROL_BLOCK : Z_CONGESTION_CONTROL_DROP;
Expand Down

0 comments on commit 29fca01

Please sign in to comment.