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

View File

@ -310,7 +310,7 @@ rfc1048_print(bp, length)
len = *bp++; len = *bp++;
if (bp + len > ep) { if (bp + len > ep) {
/* truncated option */ /* truncated option */
printf(" |(%d>%d)", len, ep - bp); printf(" |(%d>%td)", len, ep - bp);
return; return;
} }
/* Print the option value(s). */ /* Print the option value(s). */