Change in osmo-mgw[master]: constify arg in addr_is_any()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Jul 6 18:09:23 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/24864 )


Change subject: constify arg in addr_is_any()
......................................................................

constify arg in addr_is_any()

Change-Id: Ie8cb750d2e265bae48bbfa8ea1d88f3e316879ed
---
M src/libosmo-mgcp/mgcp_network.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/64/24864/1

diff --git a/src/libosmo-mgcp/mgcp_network.c b/src/libosmo-mgcp/mgcp_network.c
index 1b7c3bd..1014bf2 100644
--- a/src/libosmo-mgcp/mgcp_network.c
+++ b/src/libosmo-mgcp/mgcp_network.c
@@ -77,7 +77,8 @@
 
 static int rx_rtp(struct msgb *msg);
 
-static bool addr_is_any(struct osmo_sockaddr *osa) {
+static bool addr_is_any(const struct osmo_sockaddr *osa)
+{
 	if (osa->u.sa.sa_family == AF_INET6) {
 		struct in6_addr ip6_any = IN6ADDR_ANY_INIT;
 		return memcmp(&osa->u.sin6.sin6_addr,

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

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: Ie8cb750d2e265bae48bbfa8ea1d88f3e316879ed
Gerrit-Change-Number: 24864
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210706/b1b921eb/attachment.htm>


More information about the gerrit-log mailing list