misc: Fix the return type of the go back vty function...

Without this we will get warnings about incompatible assignments
This commit is contained in:
Holger Hans Peter Freyther 2010-06-08 16:11:06 +08:00
parent 89476f5c8f
commit 57da4471d1
5 changed files with 5 additions and 5 deletions

View File

@ -198,7 +198,7 @@ extern int bts_model_unknown_init(void);
extern int bts_model_bs11_init(void);
extern int bts_model_nanobts_init(void);
extern int bsc_vty_go_parent(struct vty *vty);
extern enum node_type bsc_vty_go_parent(struct vty *vty);
static struct vty_app_info vty_info = {
.name = "OpenBSC",

View File

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

View File

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

View File

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

View File

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