use roken_get*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3692 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -89,7 +89,7 @@ do_connect (char *host, int port, int nodelay)
|
||||
char **p;
|
||||
int s;
|
||||
|
||||
h = gethostbyname (host);
|
||||
h = roken_gethostbyname (host);
|
||||
if (h == NULL)
|
||||
errx (1, "gethostbyname: %s", hstrerror(h_errno));
|
||||
memset (&addr, 0, sizeof(addr));
|
||||
@@ -550,7 +550,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;
|
||||
|
Reference in New Issue
Block a user