Declare n_short, n_long and n_time as fixed-sized types. Don't ifdef
n_long or n_short specially for alphas.
This commit is contained in:
parent
c086febef5
commit
e53040ef71
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37620
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user