use k_getportbyname with krb4

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3607 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-10-14 21:28:59 +00:00
parent 6f0f6f1b30
commit 837c4cf855

View File

@@ -341,7 +341,11 @@ int main(int argc, char **argv)
else
port = htons(atoi(*argv));
} else {
#ifdef KRB5
port = krb5_getportbyname (NULL, "telnet", "tcp", 23);
#else
port = k_getportbyname("telnet", "tcp", htons(23));
#endif
}
mini_inetd (port);
} else if (argc > 0) {