osmux: Drop unused role parameter
Change-Id: I39c2852bb60aaba4f85188c55f157e4abec47a0e
This commit is contained in:
parent
3779919551
commit
c1ad7fd92b
|
@ -4,16 +4,11 @@
|
|||
|
||||
#include <osmocom/netif/osmux.h>
|
||||
struct mgcp_conn_rtp;
|
||||
enum {
|
||||
OSMUX_ROLE_BSC = 0,
|
||||
OSMUX_ROLE_BSC_NAT,
|
||||
};
|
||||
|
||||
struct mgcp_trunk;
|
||||
struct mgcp_endpoint;
|
||||
struct mgcp_conn_rtp;
|
||||
|
||||
int osmux_init(int role, struct mgcp_trunk *trunk);
|
||||
int osmux_init(struct mgcp_trunk *trunk);
|
||||
int osmux_init_conn(struct mgcp_conn_rtp *conn);
|
||||
int osmux_enable_conn(struct mgcp_endpoint *endp, struct mgcp_conn_rtp *conn,
|
||||
const struct osmo_sockaddr *addr);
|
||||
|
|
|
@ -440,7 +440,7 @@ out:
|
|||
return 0;
|
||||
}
|
||||
|
||||
int osmux_init(int role, struct mgcp_trunk *trunk)
|
||||
int osmux_init(struct mgcp_trunk *trunk)
|
||||
{
|
||||
int ret;
|
||||
struct mgcp_config *cfg = trunk->cfg;
|
||||
|
|
|
@ -741,7 +741,7 @@ uint32_t mgcp_rtp_packet_duration(const struct mgcp_endpoint *endp,
|
|||
static int mgcp_osmux_setup(struct mgcp_endpoint *endp, const char *line)
|
||||
{
|
||||
if (!endp->trunk->cfg->osmux_initialized) {
|
||||
if (osmux_init(OSMUX_ROLE_BSC, endp->trunk) < 0) {
|
||||
if (osmux_init(endp->trunk) < 0) {
|
||||
LOGPENDP(endp, DOSMUX, LOGL_ERROR, "Cannot init OSMUX\n");
|
||||
return -3;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue