cosmetic: rename function .._conn_reset() to .._conn_init()
We do allocate connections dynamically and we initialize them
once by calling mgcp_rtp_conn_reset(). Calling this a reset
function implies that the reset happens multiple times while
the struct lives. This is not tha case, so lets change the
suffix to _init()
- rename mgcp_rtp_conn_reset() to mgcp_rtp_conn_init()
Change-Id: Ie48b575ff81c8f48afcc25f485967e011e90027b
diff --git a/src/libosmo-mgcp/mgcp_conn.c b/src/libosmo-mgcp/mgcp_conn.c
index 62cbdba..cfd8170 100644
--- a/src/libosmo-mgcp/mgcp_conn.c
+++ b/src/libosmo-mgcp/mgcp_conn.c
@@ -83,8 +83,8 @@
talloc_free(codec->audio_name);
}
-/* Reset states, free memory, set defaults and reset codec state */
-static void mgcp_rtp_conn_reset(struct mgcp_conn_rtp *conn)
+/* Initialize rtp connection struct with default values */
+static void mgcp_rtp_conn_init(struct mgcp_conn_rtp *conn)
{
struct mgcp_rtp_end *end = &conn->end;
@@ -141,7 +141,7 @@
switch (type) {
case MGCP_CONN_TYPE_RTP:
- mgcp_rtp_conn_reset(&conn->u.rtp);
+ mgcp_rtp_conn_init(&conn->u.rtp);
break;
default:
/* NOTE: This should never be called with an