diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-13 14:14:03 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-13 14:53:16 +0200 |
commit | 1b5e5c372781731d63dbefb01898e790236c354f (patch) | |
tree | 95ca11905f15be35b70ddf6e208a0b47ca322b8d /openbsc | |
parent | f505f5dff1bc20494b25c6759752ad4e37325793 (diff) |
controlif: declare controlif_setup() in control_cmd.h
this avoids us to copy+paste external declarations over all 'main'
files.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/include/openbsc/control_cmd.h | 3 | ||||
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 2 | ||||
-rw-r--r-- | openbsc/src/osmo-bsc_nat/bsc_nat.c | 2 | ||||
-rw-r--r-- | openbsc/src/osmo-nitb/bsc_hack.c | 2 |
4 files changed, 3 insertions, 6 deletions
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 = { |