diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c index 81de5fd22..0109342ae 100644 --- a/src/libosmo-mgcp/mgcp_osmux.c +++ b/src/libosmo-mgcp/mgcp_osmux.c @@ -363,8 +363,7 @@ out: return 0; } -#define osmux_chunk_length(msg, rem) (rem - msg->len); - +#define osmux_chunk_length(msg, rem) ((rem) - (msg)->len) static int osmux_read_fd_cb(struct osmo_fd *ofd, unsigned int what) { struct msgb *msg;