aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-28 12:51:47 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-28 12:55:49 +0200
commit9ab47eb52da73d25c4f94869385a4f836032362a (patch)
tree8ba4bb1e8bf28708e29d97618cf19bbb9e7c7cbf
parentd99182c01037f4dd14fb72b2b06497e0c1bebb49 (diff)
Init access_lists before passing it as a parameter
Previous state is harmless because the pointer is stored but not used in that function. However, it's more clear this way. Change-Id: I048ebc120306ea30ea973d6ee16ed84c9f341183
-rw-r--r--src/osmo-bsc/osmo_bsc_main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/osmo-bsc/osmo_bsc_main.c b/src/osmo-bsc/osmo_bsc_main.c
index 69db32e55..1f951b159 100644
--- a/src/osmo-bsc/osmo_bsc_main.c
+++ b/src/osmo-bsc/osmo_bsc_main.c
@@ -72,7 +72,7 @@ struct gsm_network *bsc_gsmnet = 0;
static const char *config_file = "osmo-bsc.cfg";
static const char *rf_ctrl = NULL;
static int daemonize = 0;
-static struct llist_head access_lists;
+static LLIST_HEAD(access_lists);
struct llist_head *bsc_access_lists(void)
{
@@ -812,8 +812,6 @@ int main(int argc, char **argv)
osmo_ss7_init();
osmo_ss7_vty_init_asp(tall_bsc_ctx);
- INIT_LLIST_HEAD(&access_lists);
-
/* parse options */
handle_options(argc, argv);