From 8fc1a46f2868d71ba271aa34d1758a6c6bb8bd92 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 17 May 2010 00:53:10 +0200 Subject: [SGSN] remove the mmctx->sgsn pointer We never want to support multiple sgsn's within one process, so there is no point in passing them around all the time. --- openbsc/src/gprs/sgsn_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/src/gprs/sgsn_main.c') diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index ac895a2ce..74efe8418 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -59,19 +59,19 @@ void subscr_put() { abort(); } void *tall_bsc_ctx; struct gprs_ns_inst *sgsn_nsi; - const char *openbsc_copyright = "Copyright (C) 2010 Harald Welte and On-Waves\n" "License GPLv2+: GNU GPL version 2 or later \n" "This is free software: you are free to change and redistribute it.\n" "There is NO WARRANTY, to the extent permitted by law.\n"; -struct sgsn_instance sgsn_inst = { +static struct sgsn_instance sgsn_inst = { .config_file = "osmo_sgsn.cfg", .cfg = { .gtp_statedir = "./", }, }; +struct sgsn_instance *sgsn = &sgsn_inst; /* call-back function for the NS protocol */ static int sgsn_ns_cb(enum gprs_ns_evt event, struct gprs_nsvc *nsvc, -- cgit v1.2.3