aboutsummaryrefslogtreecommitdiffstats
path: root/src/hlr.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.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.c')
-rw-r--r--src/hlr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hlr.c b/src/hlr.c
index 8732587..c38f13f 100644
--- a/src/hlr.c
+++ b/src/hlr.c
@@ -43,7 +43,7 @@
#include "luop.h"
#include "hlr_vty.h"
-static struct hlr *g_hlr;
+struct hlr *g_hlr;
static int quit = 0;
/* Trigger 'Insert Subscriber Data' messages to all connected GSUP clients.
@@ -569,7 +569,7 @@ int main(int argc, char **argv)
vty_init(&vty_info);
ctrl_vty_init(hlr_ctx);
handle_options(argc, argv);
- hlr_vty_init(g_hlr, &hlr_log_info);
+ hlr_vty_init(&hlr_log_info);
rc = vty_read_config_file(cmdline_opts.config_file, NULL);
if (rc < 0) {