diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-02-21 08:42:36 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-02-21 08:42:36 +0000 |
commit | 7a30cc3d08ae261fca9ad829b5608555193842c2 (patch) | |
tree | cf5d299498165c61556bfbbbd67518d5858b3b87 /sys/netinet/ip_ipsp.h | |
parent | ce6c230a089eae97b432b90cd9dc3a960a5bc0c7 (diff) |
-nostdinc and big endian cleanup
Diffstat (limited to 'sys/netinet/ip_ipsp.h')
-rw-r--r-- | sys/netinet/ip_ipsp.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h index 85e122a752e..8fecdb7ff84 100644 --- a/sys/netinet/ip_ipsp.h +++ b/sys/netinet/ip_ipsp.h @@ -66,9 +66,8 @@ struct xformsw #define IPSEC_ZEROES_SIZE 64 -#ifdef IPSEC_IPSP_C #if BYTE_ORDER == LITTLE_ENDIAN -inline u_int64_t +static __inline u_int64_t htonq(u_int64_t q) { register u_int32_t u, l; @@ -88,11 +87,8 @@ htonq(u_int64_t q) #else #error "Please fix <machine/endian.h>" #endif -#else -u_int64_t htonq(u_int64_t); -#define ntohq(_x) htonq(_x) -extern unsigned char ipseczeroes[IPSEC_ZEROES_SIZE]; -#endif + +extern unsigned char ipseczeroes[]; #ifdef _KERNEL #undef ENCDEBUG |