diff options
author | arehbein <arehbein@sysmocom.de> | 2023-02-25 17:48:58 +0100 |
---|---|---|
committer | arehbein <arehbein@sysmocom.de> | 2023-02-28 10:32:07 +0000 |
commit | 41089524a3fa2527ca46705847f083eb3062c508 (patch) | |
tree | 2366049752efc71b15a4ee1db8918be20b8f1d46 | |
parent | 36d387748343a8ff1df672f20463ecbc5e6b197a (diff) |
Transition to use of 'telnet_init_default'
Related: OS#5809
Change-Id: Icc57c68337d55c6594c1c36e9bf41624d11dab0a
-rw-r--r-- | examples/sccp_demo_user.c | 3 | ||||
-rw-r--r-- | stp/stp_main.c | 2 | ||||
-rw-r--r-- | tests/vty/ss7_asp_vty_test.c | 2 |
3 files changed, 3 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 @@ int main(int argc, char **argv) } } - 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 @@ int main(int argc, char **argv) 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 @@ int main(int argc, char **argv) } } - 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; |