Author: dim
Date: Sat Dec 31 19:28:54 2011
New Revision: 229138
URL: http://svn.freebsd.org/changeset/base/229138

Log:
  MFC r228584:
  
  In libexec/bootpd/tools/bootptest/print-bootp.c, use the correct printf
  length modifier for the difference between two pointers.

Modified:
  stable/9/libexec/bootpd/tools/bootptest/print-bootp.c
Directory Properties:
  stable/9/libexec/bootpd/   (props changed)

Modified: stable/9/libexec/bootpd/tools/bootptest/print-bootp.c
==============================================================================
--- stable/9/libexec/bootpd/tools/bootptest/print-bootp.c       Sat Dec 31 
19:26:24 2011        (r229137)
+++ stable/9/libexec/bootpd/tools/bootptest/print-bootp.c       Sat Dec 31 
19:28:54 2011        (r229138)
@@ -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). */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to