use roken_getservbyname

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3691 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-10-29 01:22:56 +00:00
parent e855277091
commit 2856b1839a

View File

@@ -74,7 +74,7 @@ get_socket (char *host, int port)
struct hostent *hp;
int s;
hp = gethostbyname(host);
hp = roken_gethostbyname(host);
if(hp == NULL)
err(1, "%s", host);
s = socket(AF_INET, SOCK_STREAM, 0);
@@ -233,7 +233,7 @@ main(int argc, char **argv)
usage (1);
if (port_str) {
struct servent *s = getservbyname (port_str, "tcp");
struct servent *s = roken_getservbyname (port_str, "tcp");
if (s)
port = s->s_port;