arehbein submitted this change.
Transition to use of 'telnet_init_default'
Related: OS#5809
Change-Id: Icc57c68337d55c6594c1c36e9bf41624d11dab0a
---
M examples/sccp_demo_user.c
M stp/stp_main.c
M tests/vty/ss7_asp_vty_test.c
3 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/examples/sccp_demo_user.c b/examples/sccp_demo_user.c
index df6c9af..a88dd69 100644
--- a/examples/sccp_demo_user.c
+++ b/examples/sccp_demo_user.c
@@ -285,8 +285,7 @@
}
}
- rc = telnet_init_dynif(NULL, NULL, config_file ? vty_get_bind_addr() : local_address,
- 2324+client);
+ rc = telnet_init_default(NULL, NULL, 2324 + client);
if (rc < 0) {
perror("Error binding VTY port");
exit(1);
diff --git a/stp/stp_main.c b/stp/stp_main.c
index 569cf8e..01d1865 100644
--- a/stp/stp_main.c
+++ b/stp/stp_main.c
@@ -243,7 +243,7 @@
exit(1);
}
- rc = telnet_init_dynif(tall_stp_ctx, NULL, vty_get_bind_addr(), OSMO_VTY_PORT_STP);
+ rc = telnet_init_default(tall_stp_ctx, NULL, OSMO_VTY_PORT_STP);
if (rc < 0) {
perror("Error binding VTY port\n");
exit(1);
diff --git a/tests/vty/ss7_asp_vty_test.c b/tests/vty/ss7_asp_vty_test.c
index 80ce3ec..5423f6f 100644
--- a/tests/vty/ss7_asp_vty_test.c
+++ b/tests/vty/ss7_asp_vty_test.c
@@ -182,7 +182,7 @@
}
}
- rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42043);
+ rc = telnet_init_default(root_ctx, NULL, 42043);
if (rc < 0)
return 2;
To view, visit change 31516. To unsubscribe, or for help writing mail filters, visit settings.