net/sntp.c: move ifdef into Makefile COBJS-$(...)
authorMike Frysinger <vapier@gentoo.org>
Fri, 6 Feb 2009 02:04:47 +0000 (21:04 -0500)
committerBen Warren <biggerbadderben@gmail.com>
Tue, 10 Feb 2009 06:53:54 +0000 (22:53 -0800)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
net/Makefile
net/sntp.c

index 0eee330..d341874 100644 (file)
@@ -33,7 +33,7 @@ COBJS-y += bootp.o
 COBJS-y += rarp.o
 COBJS-y += eth.o
 COBJS-y += nfs.o
-COBJS-y += sntp.o
+COBJS-$(CONFIG_CMD_SNTP) += sntp.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
index 425d35e..404587e 100644 (file)
@@ -12,8 +12,6 @@
 
 #include "sntp.h"
 
-#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_SNTP)
-
 #define SNTP_TIMEOUT 10000UL
 
 static int SntpOurPort;
@@ -88,5 +86,3 @@ SntpStart (void)
 
        SntpSend ();
 }
-
-#endif