From 4c642b9a5cf0e33ca8e3b66f9aa547ba52f8f20c Mon Sep 17 00:00:00 2001 From: "matthias.ringwald" Date: Sat, 6 Aug 2011 08:52:06 +0000 Subject: [PATCH] fix conditional compile and prototypes --- src/run_loop_embedded.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/run_loop_embedded.c b/src/run_loop_embedded.c index 0250fdcad..a797caa89 100644 --- a/src/run_loop_embedded.c +++ b/src/run_loop_embedded.c @@ -60,8 +60,9 @@ // the run loop static linked_list_t data_sources; -#ifdef HAVE_TICK static linked_list_t timers; + +#ifdef HAVE_TICK static uint32_t system_ticks; #endif @@ -118,7 +119,7 @@ int embedded_remove_timer(timer_source_t *ts){ #endif } -void embedded_dump_timer(){ +void embedded_dump_timer(void){ #ifdef ENABLE_LOG_INFO linked_item_t *it; int i = 0; @@ -132,7 +133,7 @@ void embedded_dump_timer(){ /** * Execute run_loop */ -void embedded_execute() { +void embedded_execute(void) { data_source_t *ds; while (1) { @@ -186,7 +187,7 @@ void run_loop_set_timer(timer_source_t *ts, uint32_t timeout_in_ms){ } #endif -void embedded_init(){ +void embedded_init(void){ data_sources = NULL;