libosmocore: Transition to use of 'telnet_init_default'

Replace remaining calls of telnet_init_dynif() by telnet_init_default()

Related: OS#5809
Change-Id: Ie762d0c642021db1a6ef95333cd771351de86845
This commit is contained in:
arehbein 2023-01-27 00:49:45 +01:00
parent d3455fa620
commit 0aa84cfde4
7 changed files with 7 additions and 8 deletions

View File

@ -261,7 +261,7 @@ int main(int argc, char **argv)
}
}
rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
rc = telnet_init_default(root_ctx, NULL, 42042);
if (rc < 0)
return 2;

View File

@ -70,7 +70,7 @@ int main(int argc, char **argv)
osmo_stats_vty_add_cmds();
rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
rc = telnet_init_default(root_ctx, NULL, 42042);
if (rc < 0)
return 2;

View File

@ -260,7 +260,7 @@ int main(int argc, char **argv)
}
}
rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
rc = telnet_init_default(root_ctx, NULL, 42042);
if (rc < 0)
return 2;

View File

@ -253,7 +253,7 @@ int main(int argc, char **argv)
}
}
rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
rc = telnet_init_default(root_ctx, NULL, 42042);
if (rc < 0)
return 2;

View File

@ -327,7 +327,7 @@ int main(int argc, char **argv)
}
}
rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
rc = telnet_init_default(root_ctx, NULL, 42042);
if (rc < 0)
return 2;

View File

@ -361,7 +361,7 @@ int main(int argc, char **argv)
}
}
rc = telnet_init_dynif(root_ctx, NULL, vty_get_bind_addr(), 42042);
rc = telnet_init_default(root_ctx, NULL, 42042);
if (rc < 0)
return 2;

View File

@ -272,8 +272,7 @@ int main (int argc, char *argv[])
fprintf(stderr, "No config file: '%s' Using default config.\n",
config_file);
rc = telnet_init_dynif(ctx, NULL, vty_get_bind_addr(),
vty_port);
rc = telnet_init_default(ctx, NULL, vty_port);
if (rc < 0) {
fprintf(stderr, "Error initializing telnet\n");
exit(1);