|
@@ -94,7 +94,7 @@
|
|
|
|
|
|
DECLARE_GLOBAL_DATA_PTR;
|
|
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
|
|
#ifndef CONFIG_NET_RETRY_COUNT
|
|
# define ARP_TIMEOUT_COUNT 5 /* # of timeouts before giving up */
|
|
# define ARP_TIMEOUT_COUNT 5 /* # of timeouts before giving up */
|
|
#else
|
|
#else
|
|
@@ -589,7 +589,7 @@ void NetStartAgain (void)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
#ifndef CONFIG_NET_MULTI
|
|
#ifndef CONFIG_NET_MULTI
|
|
- NetSetTimeout (10 * CFG_HZ, startAgainTimeout);
|
|
|
|
|
|
+ NetSetTimeout (10UL * CFG_HZ, startAgainTimeout);
|
|
NetSetHandler (startAgainHandler);
|
|
NetSetHandler (startAgainHandler);
|
|
#else /* !CONFIG_NET_MULTI*/
|
|
#else /* !CONFIG_NET_MULTI*/
|
|
eth_halt ();
|
|
eth_halt ();
|
|
@@ -598,7 +598,7 @@ void NetStartAgain (void)
|
|
if (NetRestartWrap) {
|
|
if (NetRestartWrap) {
|
|
NetRestartWrap = 0;
|
|
NetRestartWrap = 0;
|
|
if (NetDevExists && !once) {
|
|
if (NetDevExists && !once) {
|
|
- NetSetTimeout (10 * CFG_HZ, startAgainTimeout);
|
|
|
|
|
|
+ NetSetTimeout (10UL * CFG_HZ, startAgainTimeout);
|
|
NetSetHandler (startAgainHandler);
|
|
NetSetHandler (startAgainHandler);
|
|
} else {
|
|
} else {
|
|
NetState = NETLOOP_FAIL;
|
|
NetState = NETLOOP_FAIL;
|
|
@@ -774,7 +774,7 @@ static void PingStart(void)
|
|
#if defined(CONFIG_NET_MULTI)
|
|
#if defined(CONFIG_NET_MULTI)
|
|
printf ("Using %s device\n", eth_get_name());
|
|
printf ("Using %s device\n", eth_get_name());
|
|
#endif /* CONFIG_NET_MULTI */
|
|
#endif /* CONFIG_NET_MULTI */
|
|
- NetSetTimeout (10 * CFG_HZ, PingTimeout);
|
|
|
|
|
|
+ NetSetTimeout (10UL * CFG_HZ, PingTimeout);
|
|
NetSetHandler (PingHandler);
|
|
NetSetHandler (PingHandler);
|
|
|
|
|
|
PingSend();
|
|
PingSend();
|