osmux: Rename field s/init/initialized

Change-Id: Ic48de396b1d8a0774611b4a1c2248ba79bdaf044
This commit is contained in:
Pau Espin 2022-09-25 00:14:03 +02:00
parent ea7aaf2eca
commit b7f52b414e
3 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ struct mgcp_config {
/* The BSC-NAT may ask for enabling osmux on demand. This tells us if /* The BSC-NAT may ask for enabling osmux on demand. This tells us if
* the osmux socket is already initialized. * the osmux socket is already initialized.
*/ */
bool osmux_init; bool osmux_initialized;
/* osmux batch factor: from 1 to 4 maximum */ /* osmux batch factor: from 1 to 4 maximum */
int osmux_batch; int osmux_batch;
/* osmux batch size (in bytes) */ /* osmux batch size (in bytes) */

View File

@ -492,7 +492,7 @@ int osmux_init(int role, struct mgcp_trunk *trunk)
osmo_sock_get_name2(osmux_fd.fd)); osmo_sock_get_name2(osmux_fd.fd));
return ret; return ret;
} }
cfg->osmux_init = true; cfg->osmux_initialized = true;
LOGP(DOSMUX, LOGL_INFO, "OSMUX socket listening on %s\n", LOGP(DOSMUX, LOGL_INFO, "OSMUX socket listening on %s\n",
osmo_sock_get_name2(osmux_fd.fd)); osmo_sock_get_name2(osmux_fd.fd));

View File

@ -740,7 +740,7 @@ uint32_t mgcp_rtp_packet_duration(const struct mgcp_endpoint *endp,
*/ */
static int mgcp_osmux_setup(struct mgcp_endpoint *endp, const char *line) static int mgcp_osmux_setup(struct mgcp_endpoint *endp, const char *line)
{ {
if (!endp->trunk->cfg->osmux_init) { if (!endp->trunk->cfg->osmux_initialized) {
if (osmux_init(OSMUX_ROLE_BSC, endp->trunk) < 0) { if (osmux_init(OSMUX_ROLE_BSC, endp->trunk) < 0) {
LOGPENDP(endp, DLMGCP, LOGL_ERROR, "Cannot init OSMUX\n"); LOGPENDP(endp, DLMGCP, LOGL_ERROR, "Cannot init OSMUX\n");
return -3; return -3;