Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/tcpdump Make it compile on big-endian platforms.
details: https://anonhg.NetBSD.org/src/rev/212957bbe5e3
branches: trunk
changeset: 467490:212957bbe5e3
user: itohy <itohy%NetBSD.org@localhost>
date: Thu Mar 25 05:07:34 1999 +0000
description:
Make it compile on big-endian platforms.
diffstat:
usr.sbin/tcpdump/print-token.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 72262989b9c2 -r 212957bbe5e3 usr.sbin/tcpdump/print-token.c
--- a/usr.sbin/tcpdump/print-token.c Thu Mar 25 05:06:32 1999 +0000
+++ b/usr.sbin/tcpdump/print-token.c Thu Mar 25 05:07:34 1999 +0000
@@ -21,7 +21,7 @@
#if 0
static char rcsid[] =
- "@(#)$Header: /cvsroot/src/usr.sbin/tcpdump/Attic/print-token.c,v 1.1 1999/03/23 00:02:25 bad Exp $ (LBL)";
+ "@(#)$Header: /cvsroot/src/usr.sbin/tcpdump/Attic/print-token.c,v 1.2 1999/03/25 05:07:34 itohy Exp $ (LBL)";
#endif
#ifdef HAVE_TOKEN
@@ -140,7 +140,7 @@
struct token_rif *rif;
rif = TOKEN_RIF(trp);
- riflen = (NTOHS(rif->tr_rcf) & TOKEN_RCF_LEN_MASK) >> 8;
+ riflen = (ntohs(rif->tr_rcf) & TOKEN_RCF_LEN_MASK) >> 8;
/*
* XXX if (vflag && eflag) print RIF ???
*/
Home |
Main Index |
Thread Index |
Old Index