From 2e396af2488550500cfad2410a393a793e20d80d Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Thu, 7 Aug 2014 15:05:06 +0200 Subject: [PATCH] tests: combine declaration and definition --- tests/nativenet/main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/nativenet/main.c b/tests/nativenet/main.c index 730e37b15..aa32a0656 100644 --- a/tests/nativenet/main.c +++ b/tests/nativenet/main.c @@ -129,9 +129,6 @@ void sender(void) int main(void) { -#ifndef SENDER - kernel_pid_t radio_pid = KERNEL_PID_UNDEF; -#endif int16_t a; msg_t mesg; transceiver_command_t tcmd; @@ -144,7 +141,7 @@ int main(void) #ifndef SENDER printf("\n\tmain(): starting radio thread\n"); - radio_pid = thread_create( + kernel_pid_t radio_pid = thread_create( radio_stack_buffer, sizeof(radio_stack_buffer), PRIORITY_MAIN - 2, CREATE_STACKTEST, radio, NULL, "radio");