From 1b65bba08345d6bdaaffe0aa7ff420681fdbdb76 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 1 Dec 2015 12:44:22 +0100 Subject: [PATCH] Work queue: Code style fixes --- src/platforms/posix/work_queue/hrt_thread.c | 6 +++--- src/platforms/posix/work_queue/work_thread.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/platforms/posix/work_queue/hrt_thread.c b/src/platforms/posix/work_queue/hrt_thread.c index c7f5e7c22b..67a6efe440 100644 --- a/src/platforms/posix/work_queue/hrt_thread.c +++ b/src/platforms/posix/work_queue/hrt_thread.c @@ -121,11 +121,11 @@ static void hrt_work_process() int rv; // set the threads name - #ifdef __PX4_DARWIN +#ifdef __PX4_DARWIN rv = pthread_setname_np("HRT"); - #else +#else rv = pthread_setname_np(pthread_self(), "HRT"); - #endif +#endif /* Then process queued work. We need to keep interrupts disabled while * we process items in the work list. diff --git a/src/platforms/posix/work_queue/work_thread.c b/src/platforms/posix/work_queue/work_thread.c index 406e350341..8a88bdc505 100644 --- a/src/platforms/posix/work_queue/work_thread.c +++ b/src/platforms/posix/work_queue/work_thread.c @@ -308,11 +308,11 @@ int work_usrthread(int argc, char *argv[]) int rv; // set the threads name - #ifdef __PX4_DARWIN +#ifdef __PX4_DARWIN rv = pthread_setname_np("USR"); - #else +#else rv = pthread_setname_np(pthread_self(), "USR"); - #endif +#endif for (;;) { /* Then process queued work. We need to keep interrupts disabled while