aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2018-12-10 18:01:47 +0100
committerMax <msuraev@sysmocom.de>2018-12-11 11:27:53 +0100
commit2e485767da7210c18621ba74962b94b7c1fd91cd (patch)
treeeb5060e09d710bd590bff81f06cc66e34ff9d661 /src
parentad2e18f0c4d7d129aa5fc51c7c3d5fb6f4cfe037 (diff)
Use explicit parameter for sgsn_auth_init()
This is necessary to properly test ACLs in follow-up patches. Change-Id: Ibeba371234680f33ad35afbfffce9dca185228c1
Diffstat (limited to 'src')
-rw-r--r--src/gprs/sgsn_auth.c2
-rw-r--r--src/gprs/sgsn_main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs/sgsn_auth.c b/src/gprs/sgsn_auth.c
index 50f2126..b8d8035 100644
--- a/src/gprs/sgsn_auth.c
+++ b/src/gprs/sgsn_auth.c
@@ -38,7 +38,7 @@ const struct value_string auth_state_names[] = {
const struct value_string *sgsn_auth_state_names = auth_state_names;
-void sgsn_auth_init(void)
+void sgsn_auth_init(struct sgsn_instance *sgsn)
{
INIT_LLIST_HEAD(&sgsn->cfg.imsi_acl);
}
diff --git a/src/gprs/sgsn_main.c b/src/gprs/sgsn_main.c
index 1c76d6f..798e507 100644
--- a/src/gprs/sgsn_main.c
+++ b/src/gprs/sgsn_main.c
@@ -432,7 +432,7 @@ int main(int argc, char **argv)
bssgp_vty_init();
gprs_llc_vty_init();
gprs_sndcp_vty_init();
- sgsn_auth_init();
+ sgsn_auth_init(sgsn);
sgsn_cdr_init(sgsn);
/* FIXME: register signal handler for SS_L_NS */