summaryrefslogtreecommitdiff
path: root/nuttx/drivers/pipes/pipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/pipes/pipe.c')
-rw-r--r--nuttx/drivers/pipes/pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/drivers/pipes/pipe.c b/nuttx/drivers/pipes/pipe.c
index ce4a7dbe1..826fa9ac7 100644
--- a/nuttx/drivers/pipes/pipe.c
+++ b/nuttx/drivers/pipes/pipe.c
@@ -88,7 +88,7 @@ static const struct file_operations pipe_fops =
#endif
};
-static sem_t g_pipesem = { 1 };
+static sem_t g_pipesem = SEM_INITIALIZER(1);
static uint32_t g_pipeset = 0;
static uint32_t g_pipecreated = 0;