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:
parent
68217f0a21
commit
4ac8cd12cc
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue