vty: Adapt the go_parent_cb and fix compiler warning
The return type changed from enum to int and it is time to catch up with it. vty_interface.c:108:2: warning: initialization from incompatible pointer type .go_parent_cb = ss7_go_parent, ^ vty_interface.c:108:2: warning: (near initialization for ‘vty_info.go_parent_cb’) mgcp_ss7_vty.c:36:2: warning: initialization from incompatible pointer type .go_parent_cb = mgcp_go_parent, ^ mgcp_ss7_vty.c:36:2: warning: (near initialization for ‘vty_info.go_parent_cb’) Change-Id: I8061df697daf79fa57b8313c15f6567ff152f4a5
This commit is contained in:
parent
6dd4499ea9
commit
e0b626adc0
|
@ -40,7 +40,7 @@ extern void mgcp_write_vtrunk_extra(struct vty *vty, struct mgcp_trunk_config *c
|
||||||
|
|
||||||
static int allocate_endpoints(struct mgcp_trunk_config *tcfg);
|
static int allocate_endpoints(struct mgcp_trunk_config *tcfg);
|
||||||
|
|
||||||
enum node_type mgcp_go_parent(struct vty *vty)
|
int mgcp_go_parent(struct vty *vty)
|
||||||
{
|
{
|
||||||
switch (vty->node) {
|
switch (vty->node) {
|
||||||
case TRUNK_NODE:
|
case TRUNK_NODE:
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
extern struct mgcp_config *g_cfg;
|
extern struct mgcp_config *g_cfg;
|
||||||
|
|
||||||
enum node_type mgcp_go_parent(struct vty *vty);
|
int mgcp_go_parent(struct vty *vty);
|
||||||
static struct vty_app_info vty_info = {
|
static struct vty_app_info vty_info = {
|
||||||
.name = "mgcp_ss7",
|
.name = "mgcp_ss7",
|
||||||
.version = "0.0.1",
|
.version = "0.0.1",
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
extern struct bsc_data *bsc;
|
extern struct bsc_data *bsc;
|
||||||
|
|
||||||
static enum node_type ss7_go_parent(struct vty *vty)
|
static int ss7_go_parent(struct vty *vty)
|
||||||
{
|
{
|
||||||
switch (vty->node) {
|
switch (vty->node) {
|
||||||
case LINK_NODE:
|
case LINK_NODE:
|
||||||
|
|
Reference in New Issue