From ed500e3877375bde3c0ec33825d513f9fd69c757 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 25 Feb 2011 17:09:07 +0100 Subject: nat: Allocate the endpoint status dynamically Allocate the status for an endpoint dynamically. We will support BSCs with different amount of multiplexes and need to have this flexibility in the future. Add the proper null checks to the current users of this code. --- openbsc/tests/bsc-nat/bsc_nat_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'openbsc/tests') diff --git a/openbsc/tests/bsc-nat/bsc_nat_test.c b/openbsc/tests/bsc-nat/bsc_nat_test.c index c5edbfe1a..d5b1ab193 100644 --- a/openbsc/tests/bsc-nat/bsc_nat_test.c +++ b/openbsc/tests/bsc-nat/bsc_nat_test.c @@ -479,7 +479,7 @@ static void test_mgcp_ass_tracking(void) fprintf(stderr, "Assigned timeslot should have been 1.\n"); abort(); } - if (con.bsc->endpoint_status[0x1b] != 1) { + if (con.bsc->_endpoint_status[0x1b] != 1) { fprintf(stderr, "The status on the BSC is wrong.\n"); abort(); } @@ -498,7 +498,7 @@ static void test_mgcp_ass_tracking(void) bsc_mgcp_dlcx(&con); if (con.bsc_endp != -1 || con.msc_endp != -1 || - con.bsc->endpoint_status[1] != 0 || con.bsc->last_endpoint != 0x1b) { + con.bsc->_endpoint_status[1] != 0 || con.bsc->last_endpoint != 0x1b) { fprintf(stderr, "Clearing should remove the mapping.\n"); abort(); } -- cgit v1.2.3