diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-25 13:11:41 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-25 13:11:41 +0000 |
commit | 18f45ad398b05c4efffae0a93e86d74c54b3c8d7 (patch) | |
tree | c6c23bbb71a3571cd28044d4d7c93631ebf9e4ce /sys/arch/pmax/include | |
parent | d85e22a85637536532097c45f5dce36b039cf6f4 (diff) |
htons et al. works on explicit 16- and 32-bit quantities and not the
machine dependent "short" and "long" integer. Correct and enhance manpage.
Change all short and longs to u_int16_t and u_int32_t, respectively.
OpenBSD RCSIds
Diffstat (limited to 'sys/arch/pmax/include')
-rw-r--r-- | sys/arch/pmax/include/endian.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/pmax/include/endian.h b/sys/arch/pmax/include/endian.h index 33ecdafd7b5..81ca584b676 100644 --- a/sys/arch/pmax/include/endian.h +++ b/sys/arch/pmax/include/endian.h @@ -1,3 +1,4 @@ +/* $OpenBSD: endian.h,v 1.4 1996/11/25 13:11:34 niklas Exp $ */ /* $NetBSD: endian.h,v 1.5.4.1 1996/06/05 23:53:20 jonathan Exp $ */ /* @@ -56,7 +57,7 @@ */ #define LITTLE_ENDIAN 1234 /* LSB first: i386, vax */ #define BIG_ENDIAN 4321 /* MSB first: 68000, ibm, net */ -#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long */ +#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in int32_t */ #define BYTE_ORDER LITTLE_ENDIAN @@ -65,8 +66,6 @@ __BEGIN_DECLS u_int32_t htonl __P((u_int32_t)); - - u_int16_t htons __P((u_int16_t)); u_int32_t ntohl __P((u_int32_t)); u_int16_t ntohs __P((u_int16_t)); |