diff options
author | bde <bde@FreeBSD.org> | 1998-07-13 10:54:24 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-07-13 10:54:24 +0000 |
commit | cffdc1edb6d4c181d0faf68f394747aeeb2c6af3 (patch) | |
tree | e1b4234cffea85e3a87728961cc82e3f0de6476f /sys/netinet/in_systm.h | |
parent | 1155b43c0527a92ce1d08d76493481fc211600e7 (diff) | |
download | FreeBSD-src-cffdc1edb6d4c181d0faf68f394747aeeb2c6af3.zip FreeBSD-src-cffdc1edb6d4c181d0faf68f394747aeeb2c6af3.tar.gz |
Declare n_short, n_long and n_time as fixed-sized types. Don't ifdef
n_long or n_short specially for alphas.
Diffstat (limited to 'sys/netinet/in_systm.h')
-rw-r--r-- | sys/netinet/in_systm.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/sys/netinet/in_systm.h b/sys/netinet/in_systm.h index c536890..aa6f0d7 100644 --- a/sys/netinet/in_systm.h +++ b/sys/netinet/in_systm.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in_systm.h 8.1 (Berkeley) 6/10/93 - * $Id: in_systm.h,v 1.5 1997/02/22 09:41:30 peter Exp $ + * $Id: in_systm.h,v 1.6 1998/06/07 17:12:14 dfr Exp $ */ #ifndef _NETINET_IN_SYSTM_H_ @@ -50,21 +50,10 @@ * the bytes before transmission at each protocol level. The n_ types * represent the types with the bytes in ``high-ender'' order. */ -typedef u_short n_short; /* short as received from the net */ +typedef u_int16_t n_short; /* short as received from the net */ +typedef u_int32_t n_long; /* long as received from the net */ -#ifdef __alpha__ - -typedef u_int n_long; /* long as received from the net */ - -typedef u_int n_time; /* ms since 00:00 GMT, byte rev */ - -#else - -typedef u_long n_long; /* long as received from the net */ - -typedef u_long n_time; /* ms since 00:00 GMT, byte rev */ - -#endif +typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */ #ifdef KERNEL n_time iptime __P((void)); |