osmux: Rename field s/init/initialized
Change-Id: Ic48de396b1d8a0774611b4a1c2248ba79bdaf044
This commit is contained in:
parent
ea7aaf2eca
commit
b7f52b414e
|
@ -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) */
|
||||||
|
|
|
@ -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));
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue