diff options
| author | cgd <cgd@NetBSD.org> | 1996-04-06 01:53:29 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1996-04-06 01:53:29 +0000 |
| commit | e9e09ebaca6de00cf4ed13a6b5ce7dce8115183d (patch) | |
| tree | 730215fe649d2f8dc342ba756c8e40de930390ef /include | |
| parent | 3c36209f8c05da61e174960c14144edaa68e7c47 (diff) | |
use fixed-size types where appropriate, to make timed work on 64-bit
machines (Alpha). fixed sized types, not 'timeval's should go over
the net, and the stuff that goes over the net can't necessarily be
passed directly to functions that expect timevals.
Diffstat (limited to 'include')
| -rw-r--r-- | include/protocols/timed.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/include/protocols/timed.h b/include/protocols/timed.h index 427adffe4cf..deaa619d9fb 100644 --- a/include/protocols/timed.h +++ b/include/protocols/timed.h @@ -1,4 +1,4 @@ -/* $NetBSD: timed.h,v 1.3 1994/10/26 00:56:53 cgd Exp $ */ +/* $NetBSD: timed.h,v 1.4 1996/04/06 01:53:29 cgd Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -46,11 +46,14 @@ #define ANYADDR NULL struct tsp { - u_char tsp_type; - u_char tsp_vers; - u_short tsp_seq; + u_int8_t tsp_type; + u_int8_t tsp_vers; + u_int16_t tsp_seq; union { - struct timeval tspu_time; + struct { + u_int32_t tv_sec; + u_int32_t tv_usec; + } tspu_time; char tspu_hopcnt; } tsp_u; char tsp_name[MAXHOSTNAMELEN]; |
