diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-01 18:15:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-01 18:15:01 +0000 |
commit | 300c914c64953e3f27120fc454e75926943badf5 (patch) | |
tree | 4e89214ae41d505ee46fe60e04d922b3090976d7 /cpukit/libnetworking/lib | |
parent | 2006-09-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-300c914c64953e3f27120fc454e75926943badf5.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'cpukit/libnetworking/lib')
-rw-r--r-- | cpukit/libnetworking/lib/rtems_bsdnet_ntp.c | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/lib/tftpDriver.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c b/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c index 3be505a972..a005018815 100644 --- a/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c +++ b/cpukit/libnetworking/lib/rtems_bsdnet_ntp.c @@ -34,7 +34,7 @@ * UNIX base: 1970, January 1 * NTP base: 1900, January 1 */ -#define UNIX_BASE_TO_NTP_BASE (((70UL*365UL)+17UL) * (24*60*60)) +#define UNIX_BASE_TO_NTP_BASE (uint32_t)(((70UL*365UL)+17UL) * (24UL*60UL*60UL)) struct ntpPacket { struct ntpPacketSmall ntp; diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c index 180f032219..0c0d21eaa9 100644 --- a/cpukit/libnetworking/lib/tftpDriver.c +++ b/cpukit/libnetworking/lib/tftpDriver.c @@ -56,8 +56,8 @@ int rtems_tftp_driver_debug = 1; /* * Default limits */ -#define PACKET_FIRST_TIMEOUT_MILLISECONDS 400 -#define PACKET_TIMEOUT_MILLISECONDS 6000 +#define PACKET_FIRST_TIMEOUT_MILLISECONDS 400L +#define PACKET_TIMEOUT_MILLISECONDS 6000L #define OPEN_RETRY_LIMIT 10 #define IO_RETRY_LIMIT 10 @@ -318,12 +318,12 @@ getPacket (struct tftpStream *tp, int retryCount) struct timeval tv; if (retryCount == 0) { - tv.tv_sec = PACKET_FIRST_TIMEOUT_MILLISECONDS / 1000; - tv.tv_usec = (PACKET_FIRST_TIMEOUT_MILLISECONDS % 1000) * 1000; + tv.tv_sec = PACKET_FIRST_TIMEOUT_MILLISECONDS / 1000L; + tv.tv_usec = (PACKET_FIRST_TIMEOUT_MILLISECONDS % 1000L) * 1000L; } else { - tv.tv_sec = PACKET_TIMEOUT_MILLISECONDS / 1000; - tv.tv_usec = (PACKET_TIMEOUT_MILLISECONDS % 1000) * 1000; + tv.tv_sec = PACKET_TIMEOUT_MILLISECONDS / 1000L; + tv.tv_usec = (PACKET_TIMEOUT_MILLISECONDS % 1000L) * 1000L; } setsockopt (tp->socket, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof tv); for (;;) { |