From 73fabc2b4d1b1460195d6305aa23f4b8177b4513 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 7 Oct 2015 16:30:24 +0200 Subject: [PATCH] dataman: Limit variable scope --- src/modules/dataman/dataman.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/dataman/dataman.c b/src/modules/dataman/dataman.c index f0d145d417..817b65dce3 100644 --- a/src/modules/dataman/dataman.c +++ b/src/modules/dataman/dataman.c @@ -149,8 +149,8 @@ typedef struct { static work_q_t g_free_q; /* queue of free work items. So that we don't always need to call malloc and free*/ static work_q_t g_work_q; /* pending work items. To be consumed by worker thread */ -px4_sem_t g_work_queued_sema; /* To notify worker thread a work item has been queued */ -px4_sem_t g_init_sema; +static px4_sem_t g_work_queued_sema; /* To notify worker thread a work item has been queued */ +static px4_sem_t g_init_sema; static bool g_task_should_exit; /**< if true, dataman task should exit */