diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-03-13 15:47:32 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-03-14 08:00:21 +0100 |
commit | 377eae4165d52d247bdeaac99c735fdb02edae65 (patch) | |
tree | aa4b9c78e38b5e434af013113621bafce305269e /testsuites | |
parent | 2859e422b33f3169e919c247ded32049a09cbb6f (diff) |
spsysinit01: Fix sem_open() call
The O_CREAT flag requires a mode and initial value as third and fourth
argument.
Close #4878.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/sptests/spsysinit01/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/sptests/spsysinit01/init.c b/testsuites/sptests/spsysinit01/init.c index 1f7c1ada25..2438c91559 100644 --- a/testsuites/sptests/spsysinit01/init.c +++ b/testsuites/sptests/spsysinit01/init.c @@ -908,7 +908,7 @@ static void do_posix_sem_open(void) sem_t *sem; int rv; - sem = sem_open("sem", O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO); + sem = sem_open("sem", O_CREAT | O_RDWR, S_IRWXU | S_IRWXG | S_IRWXO, 0); rtems_test_assert(sem != SEM_FAILED); rv = sem_close(sem); |