X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=net%2Fsntp.c;h=404587e80ea686372026ce578f1c0ea2beb37c29;hb=b86b85e2611d57d834795a92453431a1a340c3c9;hp=95e75422c107dcdbd9eb8f25f021c0d21ba77e4a;hpb=b23b547597ff2375ad13a9ab04e5257a3ad76c99;p=platform%2Fkernel%2Fu-boot.git diff --git a/net/sntp.c b/net/sntp.c index 95e7542..404587e 100644 --- a/net/sntp.c +++ b/net/sntp.c @@ -12,9 +12,7 @@ #include "sntp.h" -#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_SNTP) - -#define SNTP_TIMEOUT 10 +#define SNTP_TIMEOUT 10000UL static int SntpOurPort; @@ -82,11 +80,9 @@ SntpStart (void) { debug ("%s\n", __FUNCTION__); - NetSetTimeout (SNTP_TIMEOUT * CFG_HZ, SntpTimeout); + NetSetTimeout (SNTP_TIMEOUT, SntpTimeout); NetSetHandler(SntpHandler); memset (NetServerEther, 0, 6); SntpSend (); } - -#endif