aboutsummaryrefslogtreecommitdiff
path: root/libexec/bootpd/tools/bootptest/print-bootp.c
diff options
context:
space:
mode:
authorIan Dowse <iedowse@FreeBSD.org>2001-09-29 11:37:13 +0000
committerIan Dowse <iedowse@FreeBSD.org>2001-09-29 11:37:13 +0000
commit7fe354ba91ed06975f91c1f2145d4a8050bd481a (patch)
tree5400fa5975d5427f80bd2a3b7675089dba0f5bc3 /libexec/bootpd/tools/bootptest/print-bootp.c
parent625768e4a02547092c80972cd842d9d61fcefa3e (diff)
downloadsrc-7fe354ba91ed06975f91c1f2145d4a8050bd481a.tar.gz
src-7fe354ba91ed06975f91c1f2145d4a8050bd481a.zip
Notes
Diffstat (limited to 'libexec/bootpd/tools/bootptest/print-bootp.c')
-rw-r--r--libexec/bootpd/tools/bootptest/print-bootp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/bootpd/tools/bootptest/print-bootp.c b/libexec/bootpd/tools/bootptest/print-bootp.c
index 977a32dd4165..9ea450e10d90 100644
--- a/libexec/bootpd/tools/bootptest/print-bootp.c
+++ b/libexec/bootpd/tools/bootptest/print-bootp.c
@@ -120,7 +120,7 @@ bootp_print(bp, length, sport, dport)
printf(" hops:%d", bp->bp_hops);
if (bp->bp_xid)
- printf(" xid:%d", ntohl(bp->bp_xid));
+ printf(" xid:%ld", (long)ntohl(bp->bp_xid));
if (bp->bp_secs)
printf(" secs:%d", ntohs(bp->bp_secs));
@@ -336,7 +336,7 @@ rfc1048_print(bp, length)
case 'l': /* Long words */
while (len >= 4) {
bcopy((char *) bp, (char *) &ul, 4);
- printf("%d", ntohl(ul));
+ printf("%ld", (long)ntohl(ul));
bp += 4;
len -= 4;
if (len) printf(",");