From a0b6efb3685ea90190cfbd9423a74c181ea4f12f Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Thu, 13 Nov 2014 10:48:39 +0100 Subject: 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 --- openbsc/tests/sgsn/sgsn_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/tests/sgsn') 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(); -- cgit v1.2.3