Remove get_default_username()

This commit is contained in:
Nicolas Williams
2017-10-12 22:52:17 -05:00
committed by Nico Williams
parent 620862049e
commit 3f1451a4c3
7 changed files with 4 additions and 91 deletions

View File

@@ -322,6 +322,7 @@ doit (const char *hostname, int port, const char *svc,
int
main(int argc, char **argv)
{
char userbuf[128];
int argcc,port,i;
int ret=0;
@@ -329,7 +330,7 @@ main(int argc, char **argv)
port = client_setup(&context, &argcc, argv);
if (remote_name == NULL) {
remote_name = get_default_username ();
remote_name = roken_get_username(userbuf, sizeof(userbuf));
if (remote_name == NULL)
errx (1, "who are you?");
}