X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=net%2Fsntp.c;h=425d35edd884e05b7a950de505e3560244ca65dd;hb=2e5cbe5461c5c4c6665e318cfe950a5a150d999c;hp=0a7f4782cbb5557cdd1ad225c6747725c3868f1f;hpb=643d1ab23960950b52e0a2803c2d3ea4c558fa01;p=oweals%2Fu-boot.git diff --git a/net/sntp.c b/net/sntp.c index 0a7f4782cb..425d35edd8 100644 --- a/net/sntp.c +++ b/net/sntp.c @@ -12,10 +12,9 @@ #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);