Source-Changes-HG archive

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

[src/trunk]: src/dist/tcpdump Fixes to compile on alpha. Reported by Caffein...



details:   https://anonhg.NetBSD.org/src/rev/4d8124acb9b8
branches:  trunk
changeset: 511784:4d8124acb9b8
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Jun 27 02:46:25 2001 +0000

description:
Fixes to compile on alpha.  Reported by Caffeinate The World on
current-users.

diffstat:

 dist/tcpdump/print-icmp6.c |  5 +++--
 dist/tcpdump/print-sctp.c  |  8 ++++----
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 8f70c6dcbc1a -r 4d8124acb9b8 dist/tcpdump/print-icmp6.c
--- a/dist/tcpdump/print-icmp6.c        Tue Jun 26 22:52:03 2001 +0000
+++ b/dist/tcpdump/print-icmp6.c        Wed Jun 27 02:46:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-icmp6.c,v 1.2 2001/06/25 19:59:58 itojun Exp $   */
+/*     $NetBSD: print-icmp6.c,v 1.3 2001/06/27 02:46:25 simonb Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@ -27,7 +27,7 @@
 static const char rcsid[] =
     "@(#) Header: /tcpdump/master/tcpdump/print-icmp6.c,v 1.55 2001/06/15 22:17:32 fenner Exp";
 #else
-__RCSID("$NetBSD: print-icmp6.c,v 1.2 2001/06/25 19:59:58 itojun Exp $");
+__RCSID("$NetBSD: print-icmp6.c,v 1.3 2001/06/27 02:46:25 simonb Exp $");
 #endif
 #endif
 
@@ -50,6 +50,7 @@
 #include <arpa/inet.h>
 
 #include <stdio.h>
+#include <string.h>
 #include <netdb.h>
 
 #include "ip6.h"
diff -r 8f70c6dcbc1a -r 4d8124acb9b8 dist/tcpdump/print-sctp.c
--- a/dist/tcpdump/print-sctp.c Tue Jun 26 22:52:03 2001 +0000
+++ b/dist/tcpdump/print-sctp.c Wed Jun 27 02:46:25 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-sctp.c,v 1.2 2001/06/25 20:00:00 itojun Exp $    */
+/*     $NetBSD: print-sctp.c,v 1.3 2001/06/27 02:46:25 simonb Exp $    */
 
 /* Copyright (c) 2001 NETLAB, Temple University
  * Copyright (c) 2001 Protocol Engineering Lab, University of Delaware
@@ -41,7 +41,7 @@
 static const char rcsid[] =
 "@(#) Header: /tcpdump/master/tcpdump/print-sctp.c,v 1.3 2001/05/09 02:42:50 itojun Exp (NETLAB/PEL)";
 #else
-__RCSID("$NetBSD: print-sctp.c,v 1.2 2001/06/25 20:00:00 itojun Exp $");
+__RCSID("$NetBSD: print-sctp.c,v 1.3 2001/06/27 02:46:25 simonb Exp $");
 #endif
 #endif
 
@@ -114,8 +114,8 @@
 
   if (sctpPacketLength < sizeof(struct sctpHeader)) 
     {
-      (void)printf("truncated-sctp - %d bytes missing!", 
-                  sctpPacketLength-sizeof(struct sctpHeader));
+      (void)printf("truncated-sctp - %ld bytes missing!", 
+                  (long)sctpPacketLength-sizeof(struct sctpHeader));
       return;
     }
   



Home | Main Index | Thread Index | Old Index