summaryrefslogtreecommitdiff
path: root/sys/arch/i386/stand/pxeboot/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/i386/stand/pxeboot/net.c')
-rw-r--r--sys/arch/i386/stand/pxeboot/net.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/arch/i386/stand/pxeboot/net.c b/sys/arch/i386/stand/pxeboot/net.c
index f6ff146a68f..e8d335e95f6 100644
--- a/sys/arch/i386/stand/pxeboot/net.c
+++ b/sys/arch/i386/stand/pxeboot/net.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: net.c,v 1.1 2004/03/19 13:48:19 tom Exp $ */
+/* $OpenBSD: net.c,v 1.2 2014/07/13 15:31:20 mpi Exp $ */
/* $NetBSD: net.c,v 1.14 1996/10/13 02:29:02 christos Exp $ */
/*
@@ -48,7 +48,6 @@
#include <netinet/in.h>
#include <netinet/if_ether.h>
-#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
@@ -139,7 +138,7 @@ sendrecv(struct iodesc *d, ssize_t (*sproc)(struct iodesc *, void *, size_t),
* Like inet_addr() in the C library, but we only accept base-10.
* Return values are in network order.
*/
-n_long
+u_int32_t
inet_addr(char *cp)
{
u_long val;
@@ -224,7 +223,7 @@ inet_ntoa(struct in_addr ia)
/* Similar to inet_ntoa() */
char *
-intoa(n_long addr)
+intoa(u_int32_t addr)
{
char *cp;
u_int byte;
@@ -261,11 +260,11 @@ number(char *s, int *n)
return s;
}
-n_long
+u_int32_t
ip_convertaddr(char *p)
{
#define IP_ANYADDR 0
- n_long addr = 0, n;
+ u_int32_t addr = 0, n;
if (p == (char *)0 || *p == '\0')
return IP_ANYADDR;