9
0
Fork 0

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:
Holger Hans Peter Freyther 2016-08-14 08:10:53 +02:00
parent 6dd4499ea9
commit e0b626adc0
3 changed files with 3 additions and 3 deletions

View File

@ -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);
enum node_type mgcp_go_parent(struct vty *vty)
int mgcp_go_parent(struct vty *vty)
{
switch (vty->node) {
case TRUNK_NODE:

View File

@ -29,7 +29,7 @@
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 = {
.name = "mgcp_ss7",
.version = "0.0.1",

View File

@ -48,7 +48,7 @@
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) {
case LINK_NODE: