From ec4bfdc435e4273a84b586e1c28786de9e440cf6 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 30 Jun 2010 14:30:35 +0800 Subject: bsc_api: Move the API init into the main function. The BSC API will not be used until the first iteration through the event loop so it is safe to call it after the bootstrap. --- openbsc/src/bsc_hack.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/bsc_hack.c') diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index 7be03603b..45156f398 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -36,6 +36,7 @@ #include #include #include +#include #include @@ -238,6 +239,7 @@ int main(int argc, char **argv) rc = bsc_bootstrap_network(mncc_recv, config_file); if (rc < 0) exit(1); + bsc_api_init(bsc_gsmnet, msc_bsc_api()); /* seed the PRNG */ srand(time(NULL)); -- cgit v1.2.3