mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
d3455fa620
commit
0aa84cfde4
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue