aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty/telnet_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vty/telnet_interface.c')
-rw-r--r--src/vty/telnet_interface.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c
index 9aa36fe4..20d616c8 100644
--- a/src/vty/telnet_interface.c
+++ b/src/vty/telnet_interface.c
@@ -75,7 +75,7 @@ int telnet_init(void *tall_ctx, void *priv, int port)
}
/*! Initialize telnet based VTY interface
- * \param[in] tall_ctx \ref talloc context
+ * \param[in] tall_ctx should be NULL; nly for legacy API compatibility
* \param[in] priv private data to be passed to callback
* \param[in] ip IP to listen to ('::1' for localhost, '::0' for all, ...)
* \param[in] port TCP port number to bind to
@@ -84,8 +84,7 @@ int telnet_init_dynif(void *tall_ctx, void *priv, const char *ip, int port)
{
int rc;
- tall_telnet_ctx = talloc_named_const(tall_ctx, 1,
- "telnet_connection");
+ tall_telnet_ctx = talloc_named_const(tall_ctx ? tall_ctx : OTC_GLOBAL, 0, "telnet_connection");
rc = osmo_sock_init_ofd(
&server_socket,
@@ -256,7 +255,7 @@ void vty_event(enum event event, int sock, struct vty *vty)
}
/*! Close all telnet connections and release the telnet socket */
-void telnet_exit(void)
+void telnet_exit(void)
{
struct telnet_connection *tc, *tc2;