Change in osmo-sgsn[master]: Constify sgsn_acl_lookup() parameter

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/.

Max gerrit-no-reply at lists.osmocom.org
Mon Dec 10 13:35:43 UTC 2018


Max has uploaded this change for review. ( https://gerrit.osmocom.org/12222


Change subject: Constify sgsn_acl_lookup() parameter
......................................................................

Constify sgsn_acl_lookup() parameter

This requires I414e67a3de733fab407161b3264d3b89070ba537 in libosmocore
to avoid warning about discarded const.

Change-Id: Ie92637dd900b0f9eba891d5aad0b4ba0ee69c08c
---
M include/osmocom/sgsn/gprs_sgsn.h
M src/gprs/sgsn_auth.c
2 files changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/22/12222/1

diff --git a/include/osmocom/sgsn/gprs_sgsn.h b/include/osmocom/sgsn/gprs_sgsn.h
index e82bf70..b6afe69 100644
--- a/include/osmocom/sgsn/gprs_sgsn.h
+++ b/include/osmocom/sgsn/gprs_sgsn.h
@@ -460,7 +460,7 @@
 extern const struct value_string *sgsn_auth_state_names;
 
 void sgsn_auth_init(struct sgsn_instance *sgsn);
-struct imsi_acl_entry *sgsn_acl_lookup(const char *imsi, struct sgsn_config *cfg);
+struct imsi_acl_entry *sgsn_acl_lookup(const char *imsi, const struct sgsn_config *cfg);
 int sgsn_acl_add(const char *imsi, struct sgsn_config *cfg);
 int sgsn_acl_del(const char *imsi, struct sgsn_config *cfg);
 /* Request authorization */
diff --git a/src/gprs/sgsn_auth.c b/src/gprs/sgsn_auth.c
index 3cf700a..b8d8035 100644
--- a/src/gprs/sgsn_auth.c
+++ b/src/gprs/sgsn_auth.c
@@ -43,7 +43,7 @@
 	INIT_LLIST_HEAD(&sgsn->cfg.imsi_acl);
 }
 
-struct imsi_acl_entry *sgsn_acl_lookup(const char *imsi, struct sgsn_config *cfg)
+struct imsi_acl_entry *sgsn_acl_lookup(const char *imsi, const struct sgsn_config *cfg)
 {
 	struct imsi_acl_entry *acl;
 	llist_for_each_entry(acl, &cfg->imsi_acl, list) {

-- 
To view, visit https://gerrit.osmocom.org/12222
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie92637dd900b0f9eba891d5aad0b4ba0ee69c08c
Gerrit-Change-Number: 12222
Gerrit-PatchSet: 1
Gerrit-Owner: Max <msuraev at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181210/5e437b43/attachment.htm>


More information about the gerrit-log mailing list