From 1c825e25241235ce8573be50ec6fe95880e5e7c1 Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Tue, 15 Jul 2014 18:47:39 +0200 Subject: [PATCH] tests,examples: remove unneeded headers, fix style --- examples/ipc_pingpong/main.c | 1 - examples/riot_and_cpp/main.cpp | 1 - examples/rpl_udp/demo.h | 2 -- examples/rpl_udp/main.c | 1 - examples/rpl_udp/udp.c | 1 - tests/test_float/main.c | 3 ++- tests/test_ipc_pingpong/main.c | 1 - tests/test_pthread_rwlock/main.c | 1 - tests/test_queue_fairness/main.c | 2 -- tests/test_thread_basic/main.c | 4 +--- tests/test_thread_cooperation/main.c | 7 +++---- tests/test_thread_exit/main.c | 2 -- 12 files changed, 6 insertions(+), 20 deletions(-) diff --git a/examples/ipc_pingpong/main.c b/examples/ipc_pingpong/main.c index 0c4db1e35e..b80d2c2407 100644 --- a/examples/ipc_pingpong/main.c +++ b/examples/ipc_pingpong/main.c @@ -23,7 +23,6 @@ #include "thread.h" #include "msg.h" -#include "kernel.h" void *second_thread(void *arg) { diff --git a/examples/riot_and_cpp/main.cpp b/examples/riot_and_cpp/main.cpp index cd4bfec9fa..be92d3e844 100644 --- a/examples/riot_and_cpp/main.cpp +++ b/examples/riot_and_cpp/main.cpp @@ -25,7 +25,6 @@ * all included headers defining c functions, i.e. all RIOT functions, must be marked as extern "C" */ extern "C" { -#include "kernel.h" #include "thread.h" #include "c_functions.h" diff --git a/examples/rpl_udp/demo.h b/examples/rpl_udp/demo.h index 598b1ea969..90eb39a379 100644 --- a/examples/rpl_udp/demo.h +++ b/examples/rpl_udp/demo.h @@ -1,8 +1,6 @@ #ifndef DEMO_H #define DEMO_H -#include "kernel.h" - #define APP_VERSION "1.1" #define RADIO_CHANNEL (10) diff --git a/examples/rpl_udp/main.c b/examples/rpl_udp/main.c index 09c67d065a..11342b1b71 100644 --- a/examples/rpl_udp/main.c +++ b/examples/rpl_udp/main.c @@ -26,7 +26,6 @@ #include "shell_commands.h" #include "board_uart0.h" #include "destiny.h" -#include "kernel.h" #include "demo.h" diff --git a/examples/rpl_udp/udp.c b/examples/rpl_udp/udp.c index cc8dc7bf4f..6f68d9dcf1 100644 --- a/examples/rpl_udp/udp.c +++ b/examples/rpl_udp/udp.c @@ -24,7 +24,6 @@ #include #include -#include "kernel.h" #include "thread.h" #include "destiny/socket.h" diff --git a/tests/test_float/main.c b/tests/test_float/main.c index 28b2ffe3e1..6bf27340bd 100644 --- a/tests/test_float/main.c +++ b/tests/test_float/main.c @@ -19,9 +19,10 @@ */ #include -#include #include +#include "board.h" + int main(void) { double x = 1234567. / 1024., z; diff --git a/tests/test_ipc_pingpong/main.c b/tests/test_ipc_pingpong/main.c index 4058c60e2c..5faca693b8 100644 --- a/tests/test_ipc_pingpong/main.c +++ b/tests/test_ipc_pingpong/main.c @@ -23,7 +23,6 @@ #include "thread.h" #include "msg.h" -#include "kernel.h" #define ENABLE_DEBUG (0) #include "debug.h" diff --git a/tests/test_pthread_rwlock/main.c b/tests/test_pthread_rwlock/main.c index 8ec6dbae15..4a9d9e1c4f 100644 --- a/tests/test_pthread_rwlock/main.c +++ b/tests/test_pthread_rwlock/main.c @@ -31,7 +31,6 @@ #include #include -#include "kernel.h" #include "random.h" #include "sched.h" #include "thread.h" diff --git a/tests/test_queue_fairness/main.c b/tests/test_queue_fairness/main.c index c01ef6de3e..81a551aeef 100644 --- a/tests/test_queue_fairness/main.c +++ b/tests/test_queue_fairness/main.c @@ -17,8 +17,6 @@ #include -#include "flags.h" -#include "kernel.h" #include "msg.h" #include "sched.h" #include "thread.h" diff --git a/tests/test_thread_basic/main.c b/tests/test_thread_basic/main.c index 57aae6b56f..16c94552a7 100644 --- a/tests/test_thread_basic/main.c +++ b/tests/test_thread_basic/main.c @@ -19,9 +19,7 @@ */ #include -#include -#include -#include +#include "thread.h" char t2_stack[KERNEL_CONF_STACKSIZE_MAIN]; diff --git a/tests/test_thread_cooperation/main.c b/tests/test_thread_cooperation/main.c index 6ddbf7cd6c..85c128dbbc 100644 --- a/tests/test_thread_cooperation/main.c +++ b/tests/test_thread_cooperation/main.c @@ -20,10 +20,9 @@ #include #include -#include -#include -#include -#include + +#include "thread.h" +#include "mutex.h" #define PROBLEM 12 diff --git a/tests/test_thread_exit/main.c b/tests/test_thread_exit/main.c index 5627754fb8..e099c51f73 100644 --- a/tests/test_thread_exit/main.c +++ b/tests/test_thread_exit/main.c @@ -21,8 +21,6 @@ #include #include "thread.h" -#include "flags.h" -#include "kernel.h" char second_thread_stack[KERNEL_CONF_STACKSIZE_MAIN]; char third_thread_stack[KERNEL_CONF_STACKSIZE_MAIN];