From 81dbfe412c8196df443f38bf4fbea4f9897607ef Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 5 Apr 2015 18:58:55 +0200 Subject: filter: Remove the bsc_connection from the internal functions --- openbsc/src/libfilter/bsc_msg_filter.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'openbsc/src/libfilter') diff --git a/openbsc/src/libfilter/bsc_msg_filter.c b/openbsc/src/libfilter/bsc_msg_filter.c index a24e9de8b..b836f432d 100644 --- a/openbsc/src/libfilter/bsc_msg_filter.c +++ b/openbsc/src/libfilter/bsc_msg_filter.c @@ -213,7 +213,7 @@ static int auth_imsi(struct filter_request *req, return 1; } -static int _cr_check_loc_upd(struct bsc_connection *bsc, +static int _cr_check_loc_upd(void *ctx, uint8_t *data, unsigned int length, char **imsi) { @@ -238,11 +238,11 @@ static int _cr_check_loc_upd(struct bsc_connection *bsc, return 0; gsm48_mi_to_string(mi_string, sizeof(mi_string), lu->mi, lu->mi_len); - *imsi = talloc_strdup(bsc, mi_string); + *imsi = talloc_strdup(ctx, mi_string); return 1; } -static int _cr_check_cm_serv_req(struct bsc_connection *bsc, +static int _cr_check_cm_serv_req(void *ctx, uint8_t *data, unsigned int length, int *con_type, char **imsi) { @@ -276,11 +276,11 @@ static int _cr_check_cm_serv_req(struct bsc_connection *bsc, if (mi_type != GSM_MI_TYPE_IMSI) return 0; - *imsi = talloc_strdup(bsc, mi_string); + *imsi = talloc_strdup(ctx, mi_string); return 1; } -static int _cr_check_pag_resp(struct bsc_connection *bsc, +static int _cr_check_pag_resp(void *ctx, uint8_t *data, unsigned int length, char **imsi) { struct gsm48_pag_resp *resp; @@ -302,7 +302,7 @@ static int _cr_check_pag_resp(struct bsc_connection *bsc, if (mi_type != GSM_MI_TYPE_IMSI) return 0; - *imsi = talloc_strdup(bsc, mi_string); + *imsi = talloc_strdup(ctx, mi_string); return 1; } -- cgit v1.2.3