From 2aedc8490db8abcbb180c333364a98b61240769c Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Fri, 20 Feb 2009 21:23:22 +0000 Subject: [PATCH] Compile only if timesynch is enabled --- core/net/rime/timesynch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/net/rime/timesynch.c b/core/net/rime/timesynch.c index 644267b68..77591064c 100644 --- a/core/net/rime/timesynch.c +++ b/core/net/rime/timesynch.c @@ -34,7 +34,7 @@ * * This file is part of the Contiki operating system. * - * $Id: timesynch.c,v 1.5 2008/07/02 09:05:40 adamdunkels Exp $ + * $Id: timesynch.c,v 1.6 2009/02/20 21:23:22 adamdunkels Exp $ */ /** @@ -51,9 +51,11 @@ #include + static int authority_level; static rtimer_clock_t offset; +#if TIMESYNCH_CONF_ENABLED /*---------------------------------------------------------------------------*/ int timesynch_authority_level(void) @@ -132,4 +134,5 @@ timesynch_init(void) rime_sniffer_add(&sniffer); } /*---------------------------------------------------------------------------*/ +#endif /* TIMESYNCH_CONF_ENABLED */ /** @} */