From 876dde7a7dc5c44952bea8503b5a45ebf7f5591c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 3 May 2016 09:19:59 +0200 Subject: score: Make _Objects_Information_table const The _Objects_Information_table is statically initialized. So, we can make it read-only. --- cpukit/sapi/src/exinit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/sapi/src/exinit.c') diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index 69db694b72..7988a5b793 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -51,7 +51,8 @@ static Objects_Information *_RTEMS_Objects[ OBJECTS_RTEMS_CLASSES_LAST + 1 ]; static Objects_Information *_POSIX_Objects[ OBJECTS_POSIX_CLASSES_LAST + 1 ]; -Objects_Information **_Objects_Information_table[ OBJECTS_APIS_LAST + 1 ] = { +Objects_Information ** const +_Objects_Information_table[ OBJECTS_APIS_LAST + 1 ] = { NULL, &_Internal_Objects[ 0 ], &_RTEMS_Objects[ 0 ], -- cgit v1.2.3