summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-16 15:55:43 +0000
committerdim <dim@FreeBSD.org>2011-12-16 15:55:43 +0000
commit75be8e3194c48ac0fc860d48ca52931f97f42174 (patch)
tree1101e75fdfd4b506b8dd0fd0549c1f65a78b92e4 /libexec
parent3ac7a716c7ee8afd4772d07cf3cb19cb7768e248 (diff)
downloadFreeBSD-src-75be8e3194c48ac0fc860d48ca52931f97f42174.zip
FreeBSD-src-75be8e3194c48ac0fc860d48ca52931f97f42174.tar.gz
In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers. MFC after: 1 week
Diffstat (limited to 'libexec')
-rw-r--r--libexec/bootpd/tools/bootptest/print-bootp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/bootpd/tools/bootptest/print-bootp.c b/libexec/bootpd/tools/bootptest/print-bootp.c
index 9ea450e..b3ddbba 100644
--- a/libexec/bootpd/tools/bootptest/print-bootp.c
+++ b/libexec/bootpd/tools/bootptest/print-bootp.c
@@ -310,7 +310,7 @@ rfc1048_print(bp, length)
len = *bp++;
if (bp + len > ep) {
/* truncated option */
- printf(" |(%d>%d)", len, ep - bp);
+ printf(" |(%d>%td)", len, ep - bp);
return;
}
/* Print the option value(s). */
OpenPOWER on IntegriCloud