pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-sgsn/+/30930 )


Change subject: Move extern declarations of tall_sgsn_ctx to sgsn.h
......................................................................

Move extern declarations of tall_sgsn_ctx to sgsn.h

Change-Id: Ifbd54b2e92db8d4a0e0cd1c569cfd83dd85165b8
---
M include/osmocom/sgsn/sgsn.h
M src/gprs/sgsn_ares.c
M src/sgsn/apn.c
M src/sgsn/gprs_gmm.c
M src/sgsn/gprs_sgsn.c
M src/sgsn/gprs_sm.c
M src/sgsn/gprs_subscriber.c
M src/sgsn/gtp_mme.c
M src/sgsn/sgsn_vty.c
9 files changed, 1 insertion(+), 14 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/30/30930/1

diff --git a/include/osmocom/sgsn/sgsn.h b/include/osmocom/sgsn/sgsn.h
index 0bc88a9..4326846 100644
--- a/include/osmocom/sgsn/sgsn.h
+++ b/include/osmocom/sgsn/sgsn.h
@@ -159,6 +159,7 @@
 };

 extern struct sgsn_instance *sgsn;
+extern void *tall_sgsn_ctx;

 /* sgsn_vty.c */

diff --git a/src/gprs/sgsn_ares.c b/src/gprs/sgsn_ares.c
index 87314f1..81ab835 100644
--- a/src/gprs/sgsn_ares.c
+++ b/src/gprs/sgsn_ares.c
@@ -24,8 +24,6 @@

 #include <netdb.h>

-extern void *tall_sgsn_ctx;
-
 struct cares_event_fd {
        struct llist_head head;
        struct osmo_fd fd;
diff --git a/src/sgsn/apn.c b/src/sgsn/apn.c
index 8ed523e..a89d158 100644
--- a/src/sgsn/apn.c
+++ b/src/sgsn/apn.c
@@ -27,8 +27,6 @@
 #include <osmocom/sgsn/apn.h>
 #include <osmocom/sgsn/sgsn.h>

-extern void *tall_sgsn_ctx;
-
 static struct apn_ctx *sgsn_apn_ctx_alloc(const char *ap_name, const char 
*imsi_prefix)
 {
        struct apn_ctx *actx;
diff --git a/src/sgsn/gprs_gmm.c b/src/sgsn/gprs_gmm.c
index b385ff1..5505ba9 100644
--- a/src/sgsn/gprs_gmm.c
+++ b/src/sgsn/gprs_gmm.c
@@ -68,7 +68,6 @@
 #define PTMSI_ALLOC

 extern struct sgsn_instance *sgsn;
-extern void *tall_sgsn_ctx;

 static const struct tlv_definition gsm48_gmm_att_tlvdef = {
        .def = {
diff --git a/src/sgsn/gprs_sgsn.c b/src/sgsn/gprs_sgsn.c
index 8c2734b..9a3e983 100644
--- a/src/sgsn/gprs_sgsn.c
+++ b/src/sgsn/gprs_sgsn.c
@@ -62,7 +62,6 @@
 #define GPRS_LLME_CHECK_TICK 30

 extern struct sgsn_instance *sgsn;
-extern void *tall_sgsn_ctx;
 extern struct osmo_tdef sgsn_T_defs[];

 LLIST_HEAD(sgsn_mm_ctxts);
diff --git a/src/sgsn/gprs_sm.c b/src/sgsn/gprs_sm.c
index 184350d..3177a70 100644
--- a/src/sgsn/gprs_sm.c
+++ b/src/sgsn/gprs_sm.c
@@ -44,8 +44,6 @@
 #include <osmocom/sgsn/gprs_ranap.h>
 #include <osmocom/sgsn/gtp.h>

-extern void *tall_sgsn_ctx;
-
 /* 3GPP TS 04.08 sec 6.1.3.4.3(.a) "Abnormal cases" */
 #define T339X_MAX_RETRANS 4

diff --git a/src/sgsn/gprs_subscriber.c b/src/sgsn/gprs_subscriber.c
index 943fbc3..416e6a4 100644
--- a/src/sgsn/gprs_subscriber.c
+++ b/src/sgsn/gprs_subscriber.c
@@ -48,8 +48,6 @@
             (gsup)->imsi, \
             ## args)

-extern void *tall_sgsn_ctx;
-
 LLIST_HEAD(_gprs_subscribers);
 struct llist_head * const gprs_subscribers = &_gprs_subscribers;

diff --git a/src/sgsn/gtp_mme.c b/src/sgsn/gtp_mme.c
index 948e8e8..b96c90d 100644
--- a/src/sgsn/gtp_mme.c
+++ b/src/sgsn/gtp_mme.c
@@ -26,8 +26,6 @@
 #include <osmocom/sgsn/gtp_mme.h>
 #include <osmocom/sgsn/sgsn.h>

-extern void *tall_sgsn_ctx;
-
 static bool _eutran_tai_equal(const struct osmo_eutran_tai *t1, const struct 
osmo_eutran_tai *t2)
 {
        return  t1->mcc == t2->mcc &&
diff --git a/src/sgsn/sgsn_vty.c b/src/sgsn/sgsn_vty.c
index 3d3e8cd..2313a9a 100644
--- a/src/sgsn/sgsn_vty.c
+++ b/src/sgsn/sgsn_vty.c
@@ -63,8 +63,6 @@
 #include <osmocom/ranap/iu_client.h>
 #endif

-extern void *tall_sgsn_ctx;
-
 static struct sgsn_config *g_cfg = NULL;

 const struct value_string sgsn_auth_pol_strs[] = {

--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/30930
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: Ifbd54b2e92db8d4a0e0cd1c569cfd83dd85165b8
Gerrit-Change-Number: 30930
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to