From f00dc44475a1bdbca108aa3c76271393da0a6985 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Tue, 14 Apr 2015 14:38:28 -0700 Subject: [PATCH] Linux: fixed px4_task_t to be int px4_task_t is negative for failure conditions. It was set mistakenly to pthread_t (which is unsigned) for LInux. Signed-off-by: Mark Charlebois --- src/platforms/px4_tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/px4_tasks.h b/src/platforms/px4_tasks.h index 791097c873..28289f4e55 100644 --- a/src/platforms/px4_tasks.h +++ b/src/platforms/px4_tasks.h @@ -58,7 +58,7 @@ typedef int px4_task_t; #define SCHED_PRIORITY_MIN sched_get_priority_min(SCHED_FIFO) #define SCHED_PRIORITY_DEFAULT sched_get_priority_max(SCHED_FIFO) -typedef pthread_t px4_task_t; +typedef int px4_task_t; typedef struct { int argc;