pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/29455 )

Change subject: osmux: Clean up helper macro osmux_chunk_length()
......................................................................

osmux: Clean up helper macro osmux_chunk_length()

Change-Id: I482d8c5be08610788c2ed98e3b87ae4184075e8d
---
M src/libosmo-mgcp/mgcp_osmux.c
1 file changed, 1 insertion(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  fixeria: Looks good to me, but someone else must approve



diff --git a/src/libosmo-mgcp/mgcp_osmux.c b/src/libosmo-mgcp/mgcp_osmux.c
index 81de5fd..0109342 100644
--- a/src/libosmo-mgcp/mgcp_osmux.c
+++ b/src/libosmo-mgcp/mgcp_osmux.c
@@ -363,8 +363,7 @@
        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;

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/29455
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I482d8c5be08610788c2ed98e3b87ae4184075e8d
Gerrit-Change-Number: 29455
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to