From fa270b9d5bd18c65efbedde9d3a73859df3c28c6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 11 May 2010 10:05:12 +0200 Subject: [PATCH] [gprs] BSSGP: cosmetic cleanup --- openbsc/src/gprs/gprs_bssgp.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/openbsc/src/gprs/gprs_bssgp.c b/openbsc/src/gprs/gprs_bssgp.c index b2f292858..9fdfd329d 100644 --- a/openbsc/src/gprs/gprs_bssgp.c +++ b/openbsc/src/gprs/gprs_bssgp.c @@ -36,15 +36,8 @@ #include #include -/* global pointer to the gsm network data structure */ -/* FIXME: this must go! */ -extern struct gsm_network *bsc_gsmnet; - void *bssgp_tall_ctx = NULL; - -/* Our actual implementation */ - #define BVC_F_BLOCKED 0x0001 /* The per-BTS context that we keep on the SGSN side of the BSSGP link */ @@ -66,7 +59,7 @@ struct bssgp_bts_ctx { * lookup for every packet, similar to a routing cache */ //struct gprs_nsvc *nsvc; }; -LLIST_HEAD(bts_ctxts); +static LLIST_HEAD(bts_ctxts); /* Find a BTS Context based on parsed RA ID and Cell ID */ struct bssgp_bts_ctx *btsctx_by_raid_cid(const struct gprs_ra_id *raid, uint16_t cid) @@ -93,7 +86,7 @@ struct bssgp_bts_ctx *btsctx_by_bvci_nsei(uint16_t bvci, uint16_t nsei) return NULL; } -struct bssgp_btx_ctx *btsctx_alloc(uint16_t bvci, uint16_t nsei) +struct bssgp_bts_ctx *btsctx_alloc(uint16_t bvci, uint16_t nsei) { struct bssgp_bts_ctx *ctx;