diff options
author | Max <msuraev@sysmocom.de> | 2018-12-10 18:17:21 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2018-12-10 18:17:21 +0100 |
commit | 40124c86240d45b43a2d4d9e25fe4d6dbbe37359 (patch) | |
tree | 705969e70b97fdd8553f27d5413d8e9e30cb8a7b | |
parent | 67c97849f8e855c383752ad127d73065b9f99d92 (diff) |
Constify sgsn_acl_lookup() parameter
This requires I414e67a3de733fab407161b3264d3b89070ba537 in libosmocore
to avoid warning about discarded const.
Change-Id: Ie92637dd900b0f9eba891d5aad0b4ba0ee69c08c
-rw-r--r-- | include/osmocom/sgsn/gprs_sgsn.h | 2 | ||||
-rw-r--r-- | src/gprs/sgsn_auth.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/sgsn/gprs_sgsn.h b/include/osmocom/sgsn/gprs_sgsn.h index cf7876669..0b721a32b 100644 --- a/include/osmocom/sgsn/gprs_sgsn.h +++ b/include/osmocom/sgsn/gprs_sgsn.h @@ -460,7 +460,7 @@ struct sgsn_instance; extern const struct value_string *sgsn_auth_state_names; void sgsn_auth_init(void); -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 e3d91272d..50f21269d 100644 --- a/src/gprs/sgsn_auth.c +++ b/src/gprs/sgsn_auth.c @@ -43,7 +43,7 @@ void sgsn_auth_init(void) 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) { |