summaryrefslogtreecommitdiffstats
path: root/openbsc/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 15:00:52 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-07-22 15:00:52 +0200
commitcb6ad70994dc7686f1c89d803fcca1081b5ef32b (patch)
tree2cca0df46b85af353b579cf8335d586fb03e9147 /openbsc/contrib
parent34a1976d5d3791501ee57404629a849dce181b0b (diff)
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.
Diffstat (limited to 'openbsc/contrib')
-rw-r--r--openbsc/contrib/testconv/testconv_main.c2
1 files changed, 1 insertions, 1 deletions
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;