From cb6ad70994dc7686f1c89d803fcca1081b5ef32b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 22 Jul 2014 15:00:52 +0200 Subject: mgcp: Change API to remove memory management from the name Jacob pointed out that "free_endp" refers to the memory of the endpoint being freed. What we want is actually a way to release an endpoint (and the resource it allocated) or in the case of the testcase/testapp initialize the data structure correctly. Introduce two names for that. --- openbsc/contrib/testconv/testconv_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/contrib') diff --git a/openbsc/contrib/testconv/testconv_main.c b/openbsc/contrib/testconv/testconv_main.c index 89dce1ac2..773be26a3 100644 --- a/openbsc/contrib/testconv/testconv_main.c +++ b/openbsc/contrib/testconv/testconv_main.c @@ -56,7 +56,7 @@ int main(int argc, char **argv) tcfg.endpoints = &endp; tcfg.number_endpoints = 1; endp.tcfg = &tcfg; - mgcp_free_endp(&endp); + mgcp_initialize_endp(&endp); dst_end = &endp.bts_end; src_end = &endp.net_end; -- cgit v1.2.3