Skip to content
Snippets Groups Projects
Commit 638ed3e2 authored by Mike Frysinger's avatar Mike Frysinger Committed by Ben Warren
Browse files

net/sntp.c: move ifdef into Makefile COBJS-$(...)

parent 9e5be821
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ COBJS-y += bootp.o ...@@ -33,7 +33,7 @@ COBJS-y += bootp.o
COBJS-y += rarp.o COBJS-y += rarp.o
COBJS-y += eth.o COBJS-y += eth.o
COBJS-y += nfs.o COBJS-y += nfs.o
COBJS-y += sntp.o COBJS-$(CONFIG_CMD_SNTP) += sntp.o
COBJS := $(COBJS-y) COBJS := $(COBJS-y)
SRCS := $(COBJS:.o=.c) SRCS := $(COBJS:.o=.c)
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
#include "sntp.h" #include "sntp.h"
#if defined(CONFIG_CMD_NET) && defined(CONFIG_CMD_SNTP)
#define SNTP_TIMEOUT 10000UL #define SNTP_TIMEOUT 10000UL
static int SntpOurPort; static int SntpOurPort;
...@@ -88,5 +86,3 @@ SntpStart (void) ...@@ -88,5 +86,3 @@ SntpStart (void)
SntpSend (); SntpSend ();
} }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment