k_gethostname -> gethostname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4108 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -70,7 +70,7 @@ ruserpass(char *host, char **aname, char **apass, char **aacct)
|
||||
int t, i, c, usedefault = 0;
|
||||
struct stat stb;
|
||||
|
||||
if(k_gethostname(myhostname, MaxHostNameLen) < 0)
|
||||
if(gethostname(myhostname, MaxHostNameLen) < 0)
|
||||
strcpy(myhostname, "");
|
||||
if((mydomain = strchr(myhostname, '.')) == NULL)
|
||||
mydomain = myhostname;
|
||||
|
@@ -489,7 +489,7 @@ main(int argc, char **argv)
|
||||
fclose(fd);
|
||||
/* reply(220,) must follow */
|
||||
}
|
||||
k_gethostname(hostname, sizeof(hostname));
|
||||
gethostname(hostname, sizeof(hostname));
|
||||
reply(220, "%s FTP server (%s+%s) ready.", hostname,
|
||||
version, krb4_version);
|
||||
setjmp(errcatch);
|
||||
|
Reference in New Issue
Block a user