aboutsummaryrefslogtreecommitdiffstats
path: root/src/hlr_vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-07-29 12:27:41 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-30 14:53:13 +0000
commitd5807b8c871aa09d7cd6a729f9efd8af3e15efb1 (patch)
tree72ed9a73a955637da413c4bb4f2baca8fe049867 /src/hlr_vty.c
parent21c14fc7f4eda1648d6681d1ff91ffc53a73dc31 (diff)
hlr: Export + Declare global g_hlr symbol
It is a global variable, and it's sort of bogus if every C file re-declares it as a static global variable that is assigned to the same value as the "real" global one during start-up. Change-Id: I6f3e50f071fb2fbbe58413b4760dc2215055a444
Diffstat (limited to 'src/hlr_vty.c')
-rw-r--r--src/hlr_vty.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/hlr_vty.c b/src/hlr_vty.c
index ecc2f5c..ae27975 100644
--- a/src/hlr_vty.c
+++ b/src/hlr_vty.c
@@ -32,8 +32,6 @@
#include "hlr_vty_subscr.h"
#include "gsup_server.h"
-static struct hlr *g_hlr = NULL;
-
struct cmd_node hlr_node = {
HLR_NODE,
"%s(config-hlr)# ",
@@ -152,10 +150,8 @@ int hlr_vty_is_config_node(struct vty *vty, int node)
}
}
-void hlr_vty_init(struct hlr *hlr, const struct log_info *cat)
+void hlr_vty_init(const struct log_info *cat)
{
- g_hlr = hlr;
-
logging_vty_add_cmds(cat);
osmo_talloc_vty_add_cmds();
@@ -169,5 +165,5 @@ void hlr_vty_init(struct hlr *hlr, const struct log_info *cat)
install_element(GSUP_NODE, &cfg_hlr_gsup_bind_ip_cmd);
- hlr_vty_subscriber_init(hlr);
+ hlr_vty_subscriber_init();
}