Skip to content

Commit

Permalink
vty: Change the return type from enum to int
Browse files Browse the repository at this point in the history
clang complained that different enums are mixed with the
return type and we actually want this to be an int now.
  • Loading branch information
zecke committed Sep 24, 2015
1 parent 925504b commit 3e4e8cf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion openbsc/src/gprs/gb_proxy_main.c
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion openbsc/src/gprs/sgsn_main.c
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion openbsc/src/libcommon/common_vty.c
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion openbsc/src/osmo-bsc/osmo_bsc_main.c
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion openbsc/src/osmo-bsc_mgcp/mgcp_main.c
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion openbsc/src/osmo-bsc_nat/bsc_nat.c
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion openbsc/src/osmo-nitb/bsc_hack.c
Expand Up @@ -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",
Expand Down

0 comments on commit 3e4e8cf

Please sign in to comment.