diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-30 17:20:33 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-30 17:20:33 +0000 |
commit | ae5a79c349615f239308a38dc2023d0c58980b7a (patch) | |
tree | efe76b15a2e48fddec57f6a128bd0dc4913c2059 /cpukit/libnetworking/netinet/tcp_seq.h | |
parent | 2006-08-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-ae5a79c349615f239308a38dc2023d0c58980b7a.tar.bz2 |
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c,
libnetworking/net/ethernet.h, libnetworking/net/if.h,
libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c,
libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c,
libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c,
libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c,
libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h,
libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove
warnings. Most of the warnings were 16/32 bit integer sizing issues.
Some constants had L appended, some had casts add, some types were
changed to reflect a bit width requirement.
Diffstat (limited to 'cpukit/libnetworking/netinet/tcp_seq.h')
-rw-r--r-- | cpukit/libnetworking/netinet/tcp_seq.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libnetworking/netinet/tcp_seq.h b/cpukit/libnetworking/netinet/tcp_seq.h index ffc64c50af..01505377ba 100644 --- a/cpukit/libnetworking/netinet/tcp_seq.h +++ b/cpukit/libnetworking/netinet/tcp_seq.h @@ -75,7 +75,7 @@ (tp)->snd_una = (tp)->snd_nxt = (tp)->snd_max = (tp)->snd_up = \ (tp)->iss -#define TCP_PAWS_IDLE (24 * 24 * 60 * 60 * PR_SLOWHZ) +#define TCP_PAWS_IDLE (uint32_t)(24L * 24L * 60L * 60L * PR_SLOWHZ) /* timestamp wrap-around time */ #ifdef _KERNEL @@ -91,9 +91,9 @@ extern tcp_cc tcp_ccgen; /* global connection count */ * number in the range [0-0x3ffff] that is hard to predict. */ #ifndef tcp_random18 -#define tcp_random18() ((random() >> 14) & 0x3ffff) +#define tcp_random18() (((uint32_t)random() >> 14) & 0x3ffffL) #endif -#define TCP_ISSINCR (122*1024 + tcp_random18()) +#define TCP_ISSINCR (uint32_t)(122L*1024L + tcp_random18()) extern tcp_seq tcp_iss; /* tcp initial send seq # */ #else |