summaryrefslogtreecommitdiffstats
path: root/net/net.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2007-11-17 11:31:10 +0100
committerWolfgang Denk <wd@denx.de>2007-11-18 01:29:38 +0100
commit079c2c4fa71c0d1ebef394508df9088df8a308d3 (patch)
treef1d9999650c94b9bdeec8843383b3b49f7cd7a29 /net/net.c
parent0b20335015945cc9aedf27356e51aa3a0b0cdc48 (diff)
downloadtalos-obmc-uboot-079c2c4fa71c0d1ebef394508df9088df8a308d3.tar.gz
talos-obmc-uboot-079c2c4fa71c0d1ebef394508df9088df8a308d3.zip
Fix warning differ in signedness in net/net.c and net/nfs.c
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/net.c b/net/net.c
index cde26801b3..c719bc4c0f 100644
--- a/net/net.c
+++ b/net/net.c
@@ -94,7 +94,7 @@
DECLARE_GLOBAL_DATA_PTR;
-#define ARP_TIMEOUT 5 /* Seconds before trying ARP again */
+#define ARP_TIMEOUT 5UL /* Seconds before trying ARP again */
#ifndef CONFIG_NET_RETRY_COUNT
# define ARP_TIMEOUT_COUNT 5 /* # of timeouts before giving up */
#else
@@ -589,7 +589,7 @@ void NetStartAgain (void)
return;
}
#ifndef CONFIG_NET_MULTI
- NetSetTimeout (10 * CFG_HZ, startAgainTimeout);
+ NetSetTimeout (10UL * CFG_HZ, startAgainTimeout);
NetSetHandler (startAgainHandler);
#else /* !CONFIG_NET_MULTI*/
eth_halt ();
@@ -598,7 +598,7 @@ void NetStartAgain (void)
if (NetRestartWrap) {
NetRestartWrap = 0;
if (NetDevExists && !once) {
- NetSetTimeout (10 * CFG_HZ, startAgainTimeout);
+ NetSetTimeout (10UL * CFG_HZ, startAgainTimeout);
NetSetHandler (startAgainHandler);
} else {
NetState = NETLOOP_FAIL;
@@ -774,7 +774,7 @@ static void PingStart(void)
#if defined(CONFIG_NET_MULTI)
printf ("Using %s device\n", eth_get_name());
#endif /* CONFIG_NET_MULTI */
- NetSetTimeout (10 * CFG_HZ, PingTimeout);
+ NetSetTimeout (10UL * CFG_HZ, PingTimeout);
NetSetHandler (PingHandler);
PingSend();
OpenPOWER on IntegriCloud