Browse Source

tests,examples: remove unneeded headers, fix style

dev/timer
Ludwig Ortmann 9 years ago
parent
commit
1c825e2524
  1. 1
      examples/ipc_pingpong/main.c
  2. 1
      examples/riot_and_cpp/main.cpp
  3. 2
      examples/rpl_udp/demo.h
  4. 1
      examples/rpl_udp/main.c
  5. 1
      examples/rpl_udp/udp.c
  6. 3
      tests/test_float/main.c
  7. 1
      tests/test_ipc_pingpong/main.c
  8. 1
      tests/test_pthread_rwlock/main.c
  9. 2
      tests/test_queue_fairness/main.c
  10. 4
      tests/test_thread_basic/main.c
  11. 7
      tests/test_thread_cooperation/main.c
  12. 2
      tests/test_thread_exit/main.c

1
examples/ipc_pingpong/main.c

@ -23,7 +23,6 @@
#include "thread.h"
#include "msg.h"
#include "kernel.h"
void *second_thread(void *arg)
{

1
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"

2
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)

1
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"

1
examples/rpl_udp/udp.c

@ -24,7 +24,6 @@
#include <stdio.h>
#include <inttypes.h>
#include "kernel.h"
#include "thread.h"
#include "destiny/socket.h"

3
tests/test_float/main.c

@ -19,9 +19,10 @@
*/
#include <stdio.h>
#include <board.h>
#include <math.h>
#include "board.h"
int main(void)
{
double x = 1234567. / 1024., z;

1
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"

1
tests/test_pthread_rwlock/main.c

@ -31,7 +31,6 @@
#include <pthread.h>
#include <stdio.h>
#include "kernel.h"
#include "random.h"
#include "sched.h"
#include "thread.h"

2
tests/test_queue_fairness/main.c

@ -17,8 +17,6 @@
#include <stdio.h>
#include "flags.h"
#include "kernel.h"
#include "msg.h"
#include "sched.h"
#include "thread.h"

4
tests/test_thread_basic/main.c

@ -19,9 +19,7 @@
*/
#include <stdio.h>
#include <thread.h>
#include <flags.h>
#include <kernel.h>
#include "thread.h"
char t2_stack[KERNEL_CONF_STACKSIZE_MAIN];

7
tests/test_thread_cooperation/main.c

@ -20,10 +20,9 @@
#include <stdio.h>
#include <inttypes.h>
#include <thread.h>
#include <flags.h>
#include <kernel.h>
#include <mutex.h>
#include "thread.h"
#include "mutex.h"
#define PROBLEM 12

2
tests/test_thread_exit/main.c

@ -21,8 +21,6 @@
#include <stdio.h>
#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];

Loading…
Cancel
Save