From 3fbf0359231cd5bad3a0c96b9ebcec1b7b9c86da Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 22 Sep 2022 19:01:33 +0200 Subject: [PATCH] osmux: Clean up helper macro osmux_chunk_length() Change-Id: I482d8c5be08610788c2ed98e3b87ae4184075e8d --- src/libosmo-mgcp/mgcp_osmux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;