summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-23 01:37:36 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-23 01:37:36 +0000
commit01a576309148b962f52616666850c6631f5a33bb (patch)
tree1721179880e6440af9f763a3309e4a69a6337f73 /usr.sbin
parent9c6467ae36963dbb156650f4363a2acb925d38cb (diff)
in_addr_t and in_port_t
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ipftest/ipft_tx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/ipftest/ipft_tx.c b/usr.sbin/ipftest/ipft_tx.c
index a4e962b672b..8cc50b1acba 100644
--- a/usr.sbin/ipftest/ipft_tx.c
+++ b/usr.sbin/ipftest/ipft_tx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipft_tx.c,v 1.8 1997/02/26 14:59:30 kstailey Exp $ */
+/* $OpenBSD: ipft_tx.c,v 1.9 1997/06/23 01:37:35 deraadt Exp $ */
/*
* (C)opyright 1995 by Darren Reed.
*
@@ -59,15 +59,15 @@ struct ipread iptext = { text_open, text_close, text_readip };
static FILE *tfp = NULL;
static int tfd = -1;
-static u_long tx_hostnum();
-static u_short tx_portnum();
+static in_addr_t tx_hostnum();
+static in_port_t tx_portnum();
/*
* returns an ip address as a long var as a result of either a DNS lookup or
* straight inet_addr() call
*/
-static u_long tx_hostnum(host, resolved)
+static in_addr_t tx_hostnum(host, resolved)
char *host;
int *resolved;
{
@@ -88,7 +88,7 @@ int *resolved;
}
return np->n_net;
}
- return *(u_long *)hp->h_addr;
+ return *(in_addr_t *)hp->h_addr;
}
@@ -96,7 +96,7 @@ int *resolved;
* find the port number given by the name, either from getservbyname() or
* straight atoi()
*/
-static u_short tx_portnum(name)
+static in_port_t tx_portnum(name)
char *name;
{
struct servent *sp, *sp2;