aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/bsc-nat
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-04 22:28:32 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-05-03 21:42:28 +0200
commitd7e04b9956bb7d579697604fff6ba67fc6b9e52d (patch)
treef5ae2caf4e286972e5630e80b4fe7ded73ace9ef /openbsc/tests/bsc-nat
parentd04d009f473d89a426c16dd24e5a4c692caf0017 (diff)
filter: Cease out "struct bsc_nat" from the API
This means we need to require a talloc context and simply operate on the list. I had considered creating a structure to hold the list head but I didn't find any other members so omitted it for now.
Diffstat (limited to 'openbsc/tests/bsc-nat')
-rw-r--r--openbsc/tests/bsc-nat/bsc_nat_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c
index 105fec92b..8ee8e3945 100644
--- a/openbsc/tests/bsc-nat/bsc_nat_test.c
+++ b/openbsc/tests/bsc-nat/bsc_nat_test.c
@@ -879,8 +879,8 @@ static void test_cr_filter()
bsc->cfg->acc_lst_name = "bsc";
nat->acc_lst_name = "nat";
- nat_lst = bsc_nat_acc_lst_get(nat, "nat");
- bsc_lst = bsc_nat_acc_lst_get(nat, "bsc");
+ nat_lst = bsc_nat_acc_lst_get(nat, &nat->access_lists, "nat");
+ bsc_lst = bsc_nat_acc_lst_get(nat, &nat->access_lists, "bsc");
bsc_entry = bsc_nat_acc_lst_entry_create(bsc_lst);
nat_entry = bsc_nat_acc_lst_entry_create(nat_lst);