vty: Change the return type from enum to int

clang complained that different enums are mixed with the
return type and we actually want this to be an int now.
This commit is contained in:
Holger Hans Peter Freyther 2015-09-24 15:38:38 +02:00
parent 925504bfe0
commit 3e4e8cfb74
7 changed files with 7 additions and 7 deletions

View File

@ -189,7 +189,7 @@ static void handle_options(int argc, char **argv)
extern void *tall_msgb_ctx;
extern enum node_type bsc_vty_go_parent(struct vty *vty);
extern int bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OsmoGbProxy",

View File

@ -158,7 +158,7 @@ static void signal_handler(int signal)
extern struct gprs_ns_inst *bssgp_nsi;
extern void *tall_msgb_ctx;
extern enum node_type bsc_vty_go_parent(struct vty *vty);
extern int bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OsmoSGSN",

View File

@ -35,7 +35,7 @@
#include <osmocom/vty/vty.h>
enum node_type bsc_vty_go_parent(struct vty *vty)
int bsc_vty_go_parent(struct vty *vty)
{
switch (vty->node) {
case GSMNET_NODE:

View File

@ -142,7 +142,7 @@ static void handle_options(int argc, char **argv)
}
}
extern enum node_type bsc_vty_go_parent(struct vty *vty);
extern int bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OsmoBSC",

View File

@ -184,7 +184,7 @@ static int read_call_agent(struct osmo_fd *fd, unsigned int what)
return 0;
}
extern enum node_type bsc_vty_go_parent(struct vty *vty);
extern int bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OpenBSC MGCP",

View File

@ -1587,7 +1587,7 @@ static void talloc_init_ctx()
tall_ctr_ctx = talloc_named_const(tall_bsc_ctx, 0, "counter");
}
extern enum node_type bsc_vty_go_parent(struct vty *vty);
extern int bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OsmoBSCNAT",

View File

@ -235,7 +235,7 @@ static void subscr_expire_cb(void *data)
void talloc_ctx_init(void);
extern enum node_type bsc_vty_go_parent(struct vty *vty);
extern int bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OpenBSC",