aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmsc/gsm_04_08.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-04 08:35:11 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-13 13:44:54 +0200
commit7634ec1de178f8bf0459973b0e863a6dc9949762 (patch)
tree3191458c92dd10b74e193218d8f499fcc8edebc3 /openbsc/src/libmsc/gsm_04_08.c
parent0c48fc7c62e947f2934f7bfe10f2d01cbc0349c1 (diff)
db: Remove the struct gsm_network from the database layer
The database code should not know about the network. Move the setting of the network pointer into the subscriber layer.
Diffstat (limited to 'openbsc/src/libmsc/gsm_04_08.c')
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index a2995902e..c41443eb4 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -474,7 +474,7 @@ static int mm_rx_id_resp(struct gsm_subscriber_connection *conn, struct msgb *ms
if (!conn->subscr) {
conn->subscr = subscr_get_by_imsi(net, mi_string);
if (!conn->subscr)
- conn->subscr = db_create_subscriber(net, mi_string);
+ conn->subscr = subscr_create_subscriber(net, mi_string);
}
if (conn->loc_operation)
conn->loc_operation->waiting_for_imsi = 0;
@@ -586,7 +586,7 @@ static int mm_rx_loc_upd_req(struct gsm_subscriber_connection *conn, struct msgb
/* look up subscriber based on IMSI, create if not found */
subscr = subscr_get_by_imsi(bts->network, mi_string);
if (!subscr) {
- subscr = db_create_subscriber(bts->network, mi_string);
+ subscr = subscr_create_subscriber(bts->network, mi_string);
}
break;
case GSM_MI_TYPE_TMSI: