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/tftpDriver.c | |
parent | 2006-09-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-300c914c64953e3f27120fc454e75926943badf5.tar.bz2 |
*** empty log message ***
Diffstat (limited to '')
-rw-r--r-- | cpukit/libnetworking/lib/tftpDriver.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 (;;) { |