aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty/vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@netfilter.org>2009-08-07 13:25:41 +0200
committerHarald Welte <laforge@netfilter.org>2009-08-07 13:25:41 +0200
commit0224e4d051ad7bd159ae82512bc554e90f4de99f (patch)
tree494abf11b26bb70b6911b3c0e7a91115d2b9bfb7 /openbsc/src/vty/vty.c
parent2477d93c6e2fbda33e423f5514d591ea64da1685 (diff)
use one talloc context for entire vty code
Diffstat (limited to 'openbsc/src/vty/vty.c')
-rw-r--r--openbsc/src/vty/vty.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/src/vty/vty.c b/openbsc/src/vty/vty.c
index 05499142e..9962474c8 100644
--- a/openbsc/src/vty/vty.c
+++ b/openbsc/src/vty/vty.c
@@ -33,7 +33,7 @@ static int vty_config;
static int no_password_check = 1;
-static void *tall_vty_ctx;
+void *tall_vty_ctx;
static void vty_clear_buf(struct vty *vty)
{
@@ -1616,14 +1616,15 @@ void vty_init_vtysh()
vtyvec = vector_init(VECTOR_MIN_SIZE);
}
+extern void *tall_bsc_ctx;
/* Install vty's own commands like `who' command. */
void vty_init()
{
+ tall_vty_ctx = talloc_named_const(tall_bsc_ctx, 1, "vty");
+
/* For further configuration read, preserve current directory. */
vty_save_cwd();
- host.config = "openbsc.cfg";
-
vtyvec = vector_init(VECTOR_MIN_SIZE);
/* Install bgp top node. */