aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/sgsn
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2014-11-13 10:48:39 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-11-14 10:26:06 +0100
commita0b6efb3685ea90190cfbd9423a74c181ea4f12f (patch)
tree17d62d87e6fbf5229093a791b58f0e4042ff6ca9 /openbsc/tests/sgsn
parentf951a01bb227e524eb369051c95fbebace7570d0 (diff)
sgsn: Remove explicit sgsn_instance parameters
Currently the function in sgsn_auth.c either have an sgsn_config or an sgsn_instance parameter. Since then global sgsn variable is already being used in that file and since other parts of the SGSN related code also rely on a global sgsn singleton, these parameters pretend to provide a flexibility that is not really supported. Therefore this patch removes these parameters except for the ACL related functions, which do not call code that uses the sgsn variable. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/sgsn')
-rw-r--r--openbsc/tests/sgsn/sgsn_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index 2c38a1275..d6091fdab 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -798,7 +798,7 @@ int main(int argc, char **argv)
tall_bsc_ctx = talloc_named_const(NULL, 0, "osmo_sgsn");
tall_msgb_ctx = talloc_named_const(tall_bsc_ctx, 0, "msgb");
- sgsn_auth_init(sgsn);
+ sgsn_auth_init();
test_llme();
test_gmm_detach();