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

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


pespin has submitted this change. ( 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(-)

Approvals:
  Jenkins Builder: Verified
  neels: Looks good to me, approved



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-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210706/c269d219/attachment.htm>


More information about the gerrit-log mailing list