diff options
author | Aschref Ben Thabet <aschref.ben-thabet@embedded-brains.de> | 2020-08-18 17:52:56 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-08-20 07:44:33 +0200 |
commit | 65e027c9ed2b65fcd6737119b9cd6640e85c54b9 (patch) | |
tree | fe85f4d3f07d9c44c328bb5f4440b31d0af9f7de | |
parent | cbfdcba5551a93ed6b3b6dfe965fd556cbb9837a (diff) |
psxkey01: Fix configuration
Key_ID array must have the right size, it shall have a value greater
than zero.
Note: In Standard C and C++, zero-size array is not
allowed..
-rw-r--r-- | testsuites/psxtests/psxkey01/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxkey01/system.h b/testsuites/psxtests/psxkey01/system.h index 02d98b7623..186e1b71f0 100644 --- a/testsuites/psxtests/psxkey01/system.h +++ b/testsuites/psxtests/psxkey01/system.h @@ -41,7 +41,7 @@ #endif TEST_EXTERN pthread_t Init_id; -TEST_EXTERN pthread_key_t Key_id[CONFIGURE_MAXIMUM_POSIX_KEYS - 1]; +TEST_EXTERN pthread_key_t Key_id[ CONFIGURE_MAXIMUM_POSIX_KEYS ]; TEST_EXTERN uint32_t Data_array[ CONFIGURE_MAXIMUM_TASKS ]; #undef TEST_EXTERN |