summaryrefslogtreecommitdiff
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2011-12-16 15:55:43 +0000
committerDimitry Andric <dim@FreeBSD.org>2011-12-16 15:55:43 +0000
commit747a8c81c71d66b7afe4545c36a02b112b30656f (patch)
tree1101e75fdfd4b506b8dd0fd0549c1f65a78b92e4 /libexec/bootpd
parent5ed5554f0a74b43e770c70da398503c2a018d4c3 (diff)
downloadsrc-test2-747a8c81c71d66b7afe4545c36a02b112b30656f.tar.gz
src-test2-747a8c81c71d66b7afe4545c36a02b112b30656f.zip
In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
length modifier for the difference between two pointers. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=228584
Diffstat (limited to 'libexec/bootpd')
-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 9ea450e10d90..b3ddbbaee735 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). */