Blackfin: fix port mux defines for BF54x
[oweals/u-boot.git] / net / sntp.c
index 0a7f4782cbb5557cdd1ad225c6747725c3868f1f..425d35edd884e05b7a950de505e3560244ca65dd 100644 (file)
 
 #include "sntp.h"
 
-#if (defined(CONFIG_CMD_NET) \
-    && defined(CONFIG_CMD_SNTP)
+#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_SNTP)
 
-#define SNTP_TIMEOUT 10
+#define SNTP_TIMEOUT 10000UL
 
 static int SntpOurPort;
 
@@ -83,7 +82,7 @@ SntpStart (void)
 {
        debug ("%s\n", __FUNCTION__);
 
-       NetSetTimeout (SNTP_TIMEOUT * CFG_HZ, SntpTimeout);
+       NetSetTimeout (SNTP_TIMEOUT, SntpTimeout);
        NetSetHandler(SntpHandler);
        memset (NetServerEther, 0, 6);