diff --git a/openbsc/include/openbsc/control_cmd.h b/openbsc/include/openbsc/control_cmd.h index c94c7b574..82252cb6a 100644 --- a/openbsc/include/openbsc/control_cmd.h +++ b/openbsc/include/openbsc/control_cmd.h @@ -148,4 +148,7 @@ struct ctrl_cmd_element cmd_##cmdname = { \ .verify = &verify_##cmdname, \ } +struct gsm_network; +int controlif_setup(struct gsm_network *gsmnet, uint16_t port); + #endif /* _CONTROL_CMD_H */ diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 1eb8abd96..7d5d835d6 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -53,8 +53,6 @@ static const char *rf_ctl = NULL; extern const char *openbsc_copyright; static int daemonize = 0; -extern void controlif_setup(struct gsm_network *gsmnet, uint16_t port); - static void print_usage() { printf("Usage: osmo-bsc\n"); diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c index 0f865129f..2335e2412 100644 --- a/openbsc/src/osmo-bsc_nat/bsc_nat.c +++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c @@ -1686,8 +1686,6 @@ int verify_fwd_cmd(struct ctrl_cmd *cmd, const char *value, void *data) return 0; } -extern int controlif_setup(struct gsm_network *gsmnet, uint16_t port); - int main(int argc, char **argv) { int rc; diff --git a/openbsc/src/osmo-nitb/bsc_hack.c b/openbsc/src/osmo-nitb/bsc_hack.c index cbc619015..fc67a4d52 100644 --- a/openbsc/src/osmo-nitb/bsc_hack.c +++ b/openbsc/src/osmo-nitb/bsc_hack.c @@ -207,8 +207,6 @@ static void db_sync_timer_cb(void *data) void talloc_ctx_init(void); -extern int controlif_setup(struct gsm_network *gsmnet, uint16_t port); - extern enum node_type bsc_vty_go_parent(struct vty *vty); static struct vty_app_info vty_info = {