aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bootparamd/callbootd
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-06-12 14:39:00 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-06-12 14:39:00 +0000
commitca979f0fa6b9732c319d5cdc5588ace79da03292 (patch)
treed258a2da0dbdba5a430aad0f211184fd0bc1f4c2 /usr.sbin/bootparamd/callbootd
parent9ec49abd0071f1d0d6d44326a8aaa1afb2cfaedf (diff)
downloadsrc-ca979f0fa6b9732c319d5cdc5588ace79da03292.tar.gz
src-ca979f0fa6b9732c319d5cdc5588ace79da03292.zip
#include <arpa/inet.h> for inet_* definitions.
Notes
Notes: svn path=/head/; revision=36917
Diffstat (limited to 'usr.sbin/bootparamd/callbootd')
-rw-r--r--usr.sbin/bootparamd/callbootd/callbootd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bootparamd/callbootd/callbootd.c b/usr.sbin/bootparamd/callbootd/callbootd.c
index 6108fc7a329d..f92fb5f9b3ff 100644
--- a/usr.sbin/bootparamd/callbootd/callbootd.c
+++ b/usr.sbin/bootparamd/callbootd/callbootd.c
@@ -9,13 +9,15 @@ use and modify. Please send modifications and/or suggestions + bug fixes to
#ifndef lint
static const char rcsid[] =
- "$Id$";
+ "$Id: callbootd.c,v 1.6 1997/09/04 11:50:37 charnier Exp $";
#endif /* not lint */
#include "bootparam_prot.h"
#include <rpc/rpc.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
#include <err.h>
#include <netdb.h>
@@ -186,7 +188,7 @@ bp_getfile_res *res;
if (res) {
printf("server_name:\t%s\nserver_address:\t%s\npath:\t%s\n",
res->server_name,
- inet_ntoa(res->server_address.bp_address_u.ip_addr),
+ inet_ntoa(*(struct in_addr *)&res->server_address.bp_address_u.ip_addr),
res->server_path);
return(0);
} else {