aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/gprs_subscriber.c
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-01-26 11:07:24 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-27 08:31:03 +0100
commit3e4e58f349c201a2ed02971ef95051773fcef39b (patch)
tree3bd6a73fe8fd998f5238e699f262c0460dd4417e /openbsc/src/gprs/gprs_subscriber.c
parent3ee67ff5c2f9da513c77b8ab9dfc0067296dadec (diff)
gprs: Rename gprs_subscr_delete to gprs_subscr_cleanup
The old name is somewhat misleading. The function is rather preparing the subscriber for a subsequent subscr_free, that is possibly invoked by a subscr_put. It detaches the subscriber from the MM context and optionally invokes a PURGE_MS procedure. Therefore the _cleanup suffix is chosen (see mm_ctx_cleanup_free). Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/gprs/gprs_subscriber.c')
-rw-r--r--openbsc/src/gprs/gprs_subscriber.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_subscriber.c b/openbsc/src/gprs/gprs_subscriber.c
index b7e6af415..ee6c47786 100644
--- a/openbsc/src/gprs/gprs_subscriber.c
+++ b/openbsc/src/gprs/gprs_subscriber.c
@@ -127,7 +127,7 @@ struct gsm_subscriber *gprs_subscr_get_by_imsi(const char *imsi)
return subscr_active_by_imsi(NULL, imsi);
}
-void gprs_subscr_delete(struct gsm_subscriber *subscr)
+void gprs_subscr_cleanup(struct gsm_subscriber *subscr)
{
if (subscr->sgsn_data->mm) {
subscr_put(subscr->sgsn_data->mm->subscr);
@@ -150,7 +150,7 @@ void gprs_subscr_cancel(struct gsm_subscriber *subscr)
subscr->flags &= ~GPRS_SUBSCRIBER_ENABLE_PURGE;
gprs_subscr_update(subscr);
- gprs_subscr_delete(subscr);
+ gprs_subscr_cleanup(subscr);
}
static int gprs_subscr_tx_gsup_message(struct gsm_subscriber *subscr,