osmux: Use better name for function which may allocate a new struct

Change-Id: I867e3f74775d97749a78c2f198452b1f2916492f
This commit is contained in:
Pau Espin 2022-09-09 16:40:57 +02:00
parent 8c777990a5
commit ab8371c6d7
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ osmux_handle_alloc(struct mgcp_conn_rtp *conn, struct in_addr *addr, int rem_por
/* Lookup existing handle for a specified address, if the handle can not be
* found, the function will automatically allocate one */
static struct osmux_in_handle *
osmux_handle_lookup(struct mgcp_conn_rtp *conn, struct osmo_sockaddr *addr, int rem_port)
osmux_handle_find_or_create(struct mgcp_conn_rtp *conn, struct osmo_sockaddr *addr, int rem_port)
{
struct osmux_handle *h;
@ -481,7 +481,7 @@ int osmux_enable_conn(struct mgcp_endpoint *endp, struct mgcp_conn_rtp *conn,
return -1;
}
conn->osmux.in = osmux_handle_lookup(conn, addr, port);
conn->osmux.in = osmux_handle_find_or_create(conn, addr, port);
if (!conn->osmux.in) {
LOGPCONN(conn->conn, DOSMUX, LOGL_ERROR,
"Cannot allocate input osmux handle for conn:%s\n",