diff options
author | obrien <obrien@FreeBSD.org> | 2003-02-23 22:26:39 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-02-23 22:26:39 +0000 |
commit | 9e9a8e4f69fd3a29422980ec3afff8db3d1b4335 (patch) | |
tree | c959e1223de699b635d1e54fb59145b4eb917919 /sys/netatm/port.h | |
parent | 76e7d7e7b73fccbbb65827f7257fdc2fa166710e (diff) | |
download | FreeBSD-src-9e9a8e4f69fd3a29422980ec3afff8db3d1b4335.zip FreeBSD-src-9e9a8e4f69fd3a29422980ec3afff8db3d1b4335.tar.gz |
There is no reason to be cute with ntohl(). Just call it directly rather
than use a macro that tries to do conversions in place.
Compile tested on: sparc64
Diffstat (limited to 'sys/netatm/port.h')
-rw-r--r-- | sys/netatm/port.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h index df599ad..d8c7ceb 100644 --- a/sys/netatm/port.h +++ b/sys/netatm/port.h @@ -282,20 +282,6 @@ typedef void KTimeout_ret; #endif /* _KERNEL */ -#ifndef NTOHL -#if BYTE_ORDER == BIG_ENDIAN -#define NTOHL(x) (x) -#define NTOHS(x) (x) -#define HTONL(x) (x) -#define HTONS(x) (x) -#else -#define NTOHL(x) (x) = ntohl((u_long)(x)) -#define NTOHS(x) (x) = ntohs((u_short)(x)) -#define HTONL(x) (x) = htonl((u_long)(x)) -#define HTONS(x) (x) = htons((u_short)(x)) -#endif -#endif /* NTOHL */ - #ifndef MAX #define MAX(a,b) max((a),(b)) #endif |