k_gethostname -> gethostname

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4108 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-12-05 01:27:16 +00:00
parent 59eea9d8ef
commit bc63770119
5 changed files with 8 additions and 8 deletions

View File

@@ -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;

View File

@@ -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);