diff options
author | Jon Loeliger <jdl@freescale.com> | 2007-07-09 17:45:14 -0500 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-07-09 17:45:14 -0500 |
commit | 643d1ab23960950b52e0a2803c2d3ea4c558fa01 (patch) | |
tree | a68314be3734c91277645b398ae75cac97f57a30 /net/sntp.c | |
parent | cb51c0bf88f95a1bca68324b0126f8eed8b43273 (diff) | |
download | bootable_bootloader_goldelico_gta04-643d1ab23960950b52e0a2803c2d3ea4c558fa01.zip bootable_bootloader_goldelico_gta04-643d1ab23960950b52e0a2803c2d3ea4c558fa01.tar.gz bootable_bootloader_goldelico_gta04-643d1ab23960950b52e0a2803c2d3ea4c558fa01.tar.bz2 |
net/: Remove obsolete references to CONFIG_COMMANDS
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'net/sntp.c')
-rw-r--r-- | net/sntp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -12,8 +12,8 @@ #include "sntp.h" -#if (((CONFIG_COMMANDS & CFG_CMD_NET) || defined(CONFIG_CMD_NET)) \ - && ((CONFIG_COMMANDS & CFG_CMD_SNTP)) || defined(CONFIG_CMD_SNTP)) +#if (defined(CONFIG_CMD_NET) \ + && defined(CONFIG_CMD_SNTP) #define SNTP_TIMEOUT 10 @@ -68,7 +68,7 @@ SntpHandler (uchar *pkt, unsigned dest, unsigned src, unsigned len) memcpy (&seconds, &rpktp->transmit_timestamp, sizeof(ulong)); to_tm(ntohl(seconds) - 2208988800UL + NetTimeOffset, &tm); -#if (CONFIG_COMMANDS & CFG_CMD_DATE) || defined(CONFIG_CMD_DATE) +#if defined(CONFIG_CMD_DATE) rtc_set (&tm); #endif printf ("Date: %4d-%02d-%02d Time: %2d:%02d:%02d\n", @@ -90,4 +90,4 @@ SntpStart (void) SntpSend (); } -#endif /* CONFIG_COMMANDS & CFG_CMD_SNTP */ +#endif |