In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf

length modifier for the difference between two pointers.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-16 15:55:43 +00:00
parent 5ed5554f0a
commit 747a8c81c7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228584

View File

@ -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). */