Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/tcpdump fix compilation on alpha.
details: https://anonhg.NetBSD.org/src/rev/067aac55706d
branches: trunk
changeset: 474430:067aac55706d
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Jul 06 13:05:14 1999 +0000
description:
fix compilation on alpha.
diffstat:
usr.sbin/tcpdump/print-domain.c | 5 +++--
usr.sbin/tcpdump/print-icmp6.c | 7 ++++---
usr.sbin/tcpdump/print-ospf6.c | 5 +++--
3 files changed, 10 insertions(+), 7 deletions(-)
diffs (73 lines):
diff -r 9d128f8ebb88 -r 067aac55706d usr.sbin/tcpdump/print-domain.c
--- a/usr.sbin/tcpdump/print-domain.c Tue Jul 06 13:02:09 1999 +0000
+++ b/usr.sbin/tcpdump/print-domain.c Tue Jul 06 13:05:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print-domain.c,v 1.6 1999/07/02 11:31:31 itojun Exp $ */
+/* $NetBSD: print-domain.c,v 1.7 1999/07/06 13:05:14 itojun Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -27,7 +27,7 @@
static const char rcsid[] =
"@(#) Header: print-domain.c,v 1.39 97/06/13 12:56:28 leres Exp (LBL)";
#else
-__RCSID("$NetBSD: print-domain.c,v 1.6 1999/07/02 11:31:31 itojun Exp $");
+__RCSID("$NetBSD: print-domain.c,v 1.7 1999/07/06 13:05:14 itojun Exp $");
#endif
#endif
@@ -64,6 +64,7 @@
#include <arpa/nameser.h>
#include <stdio.h>
+#include <string.h>
#include "interface.h"
#include "addrtoname.h"
diff -r 9d128f8ebb88 -r 067aac55706d usr.sbin/tcpdump/print-icmp6.c
--- a/usr.sbin/tcpdump/print-icmp6.c Tue Jul 06 13:02:09 1999 +0000
+++ b/usr.sbin/tcpdump/print-icmp6.c Tue Jul 06 13:05:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print-icmp6.c,v 1.2 1999/07/04 02:57:51 itojun Exp $ */
+/* $NetBSD: print-icmp6.c,v 1.3 1999/07/06 13:05:14 itojun Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994
@@ -374,8 +374,9 @@
else
printf(",TTL=%ld", ttl);
if (buf[12] != ep - buf - 13) {
- (void)printf(",invalid namelen:%d/%d",
- buf[12], ep - buf - 13);
+ (void)printf(",invalid namelen:%d/%u",
+ buf[12],
+ (unsigned int)(ep - buf - 13));
}
}
}
diff -r 9d128f8ebb88 -r 067aac55706d usr.sbin/tcpdump/print-ospf6.c
--- a/usr.sbin/tcpdump/print-ospf6.c Tue Jul 06 13:02:09 1999 +0000
+++ b/usr.sbin/tcpdump/print-ospf6.c Tue Jul 06 13:05:14 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: print-ospf6.c,v 1.2 1999/07/04 02:57:51 itojun Exp $ */
+/* $NetBSD: print-ospf6.c,v 1.3 1999/07/06 13:05:14 itojun Exp $ */
/*
* Copyright (c) 1992, 1993, 1994, 1995, 1996, 1997
@@ -25,7 +25,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /cvsroot/src/usr.sbin/tcpdump/Attic/print-ospf6.c,v 1.2 1999/07/04 02:57:51 itojun Exp $ (LBL)";
+ "@(#) $Header: /cvsroot/src/usr.sbin/tcpdump/Attic/print-ospf6.c,v 1.3 1999/07/06 13:05:14 itojun Exp $ (LBL)";
#endif
#include <sys/param.h>
@@ -39,6 +39,7 @@
#include <ctype.h>
#include <stdio.h>
+#include <string.h>
#include "interface.h"
#include "addrtoname.h"
Home |
Main Index |
Thread Index |
Old Index