diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-01-11 12:42:31 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-01-11 12:43:18 +0100 |
commit | 164a1eeb8a96304e57a94b8267b840e5b6aa66c0 (patch) | |
tree | 1ec6b32c25f39b3c75ea85e38ebc64ef863ed285 | |
parent | 69569879ae42441ec5eb37429d0ff11fa9517a7c (diff) |
Move extern declarations of tall_sgsn_ctx to sgsn.h
Change-Id: Ifbd54b2e92db8d4a0e0cd1c569cfd83dd85165b8
-rw-r--r-- | include/osmocom/sgsn/sgsn.h | 1 | ||||
-rw-r--r-- | src/gprs/sgsn_ares.c | 2 | ||||
-rw-r--r-- | src/sgsn/apn.c | 2 | ||||
-rw-r--r-- | src/sgsn/gprs_gmm.c | 1 | ||||
-rw-r--r-- | src/sgsn/gprs_sgsn.c | 1 | ||||
-rw-r--r-- | src/sgsn/gprs_sm.c | 2 | ||||
-rw-r--r-- | src/sgsn/gprs_subscriber.c | 2 | ||||
-rw-r--r-- | src/sgsn/gtp_mme.c | 2 | ||||
-rw-r--r-- | src/sgsn/sgsn_vty.c | 2 |
9 files changed, 1 insertions, 14 deletions
diff --git a/include/osmocom/sgsn/sgsn.h b/include/osmocom/sgsn/sgsn.h index 0bc88a935..4326846bd 100644 --- a/include/osmocom/sgsn/sgsn.h +++ b/include/osmocom/sgsn/sgsn.h @@ -159,6 +159,7 @@ struct sgsn_instance { }; 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 87314f117..81ab83540 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 8ed523e73..a89d15866 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 b385ff11c..5505ba985 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 8c2734b79..9a3e983a7 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 184350dd6..3177a7040 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 943fbc3dc..416e6a408 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 948e8e8ac..b96c90df2 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 3d3e8cdf4..2313a9acd 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[] = { |