diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-06 15:34:58 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-06-06 15:34:58 +0000 |
commit | d2e5e69ed2deb05c0347f4be15832edc6a542de7 (patch) | |
tree | bed0c7cd5f6302b76511ac8416f8f31b90677ed7 /libexec/tcpd/tcpdchk/scaffold.c | |
parent | c984e0aca85a96a37b4fede1fbb6d8f697bdd207 (diff) |
use dot_quad_addr_new() as required
Diffstat (limited to 'libexec/tcpd/tcpdchk/scaffold.c')
-rw-r--r-- | libexec/tcpd/tcpdchk/scaffold.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/tcpd/tcpdchk/scaffold.c b/libexec/tcpd/tcpdchk/scaffold.c index 4d8c62b9d98..14bf223b526 100644 --- a/libexec/tcpd/tcpdchk/scaffold.c +++ b/libexec/tcpd/tcpdchk/scaffold.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scaffold.c,v 1.1 1997/02/26 06:17:07 downsj Exp $ */ +/* $OpenBSD: scaffold.c,v 1.2 1999/06/06 15:34:57 deraadt Exp $ */ /* * Routines for testing only. Not really industrial strength. @@ -10,7 +10,7 @@ #if 0 static char sccs_id[] = "@(#) scaffold.c 1.5 95/01/03 09:13:48"; #else -static char rcsid[] = "$OpenBSD: scaffold.c,v 1.1 1997/02/26 06:17:07 downsj Exp $"; +static char rcsid[] = "$OpenBSD: scaffold.c,v 1.2 1999/06/06 15:34:57 deraadt Exp $"; #endif #endif @@ -93,7 +93,7 @@ char *host; /* * Host address: translate it to internal form. */ - if ((addr.s_addr = dot_quad_addr(host)) != INADDR_NONE) { + if (dot_quad_addr(host, &addr.s_addr)) { h.h_addr_list = addr_list; h.h_addr_list[0] = (char *) &addr; h.h_length = sizeof(addr); |