Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/tcpdump/dist l in ntohl is not long!
details: https://anonhg.NetBSD.org/src/rev/8d335f591a7a
branches: trunk
changeset: 333867:8d335f591a7a
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 20 04:51:18 2014 +0000
description:
l in ntohl is not long!
diffstat:
external/bsd/tcpdump/dist/tcpdump-stdinc.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r e3fef3bbcc45 -r 8d335f591a7a external/bsd/tcpdump/dist/tcpdump-stdinc.h
--- a/external/bsd/tcpdump/dist/tcpdump-stdinc.h Thu Nov 20 03:07:30 2014 +0000
+++ b/external/bsd/tcpdump/dist/tcpdump-stdinc.h Thu Nov 20 04:51:18 2014 +0000
@@ -259,7 +259,7 @@
#undef htonl
#undef htons
- static __inline__ unsigned long __ntohl (unsigned long x);
+ static __inline__ unsigned int __ntohl (unsigned int x);
static __inline__ unsigned short __ntohs (unsigned short x);
#define ntohl(x) __ntohl(x)
@@ -267,7 +267,7 @@
#define htonl(x) __ntohl(x)
#define htons(x) __ntohs(x)
- static __inline__ unsigned long __ntohl (unsigned long x)
+ static __inline__ unsigned int __ntohl (unsigned int x)
{
__asm__ ("xchgb %b0, %h0\n\t" /* swap lower bytes */
"rorl $16, %0\n\t" /* swap words */
Home |
Main Index |
Thread Index |
Old Index