Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/ping6 Fix LP64 printf format problem.



details:   https://anonhg.NetBSD.org/src/rev/cd3dad60b2bf
branches:  trunk
changeset: 474234:cd3dad60b2bf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 01 23:59:11 1999 +0000

description:
Fix LP64 printf format problem.

diffstat:

 sbin/ping6/ping6.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 84384a336fb3 -r cd3dad60b2bf sbin/ping6/ping6.c
--- a/sbin/ping6/ping6.c        Thu Jul 01 22:47:56 1999 +0000
+++ b/sbin/ping6/ping6.c        Thu Jul 01 23:59:11 1999 +0000
@@ -1026,9 +1026,9 @@
 
                                 if (buf[off + ICMP6_NIRLEN] !=
                                     cc - off - ICMP6_NIRLEN - 1) {
-                                        (void)printf(",invalid namelen:%d/%d",
+                                        (void)printf(",invalid namelen:%d/%lu",
                                                      buf[off + ICMP6_NIRLEN],
-                                                     cc - off - ICMP6_NIRLEN - 1);
+                                                     (u_long)cc - off - ICMP6_NIRLEN - 1);
                                 }
                                 putchar(')');
                         }



Home | Main Index | Thread Index | Old Index