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/score/include/rtems/score/objectimpl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems/score/objectimpl.h') diff --git a/cpukit/score/include/rtems/score/objectimpl.h b/cpukit/score/include/rtems/score/objectimpl.h index 1129daf32f..fe087719b7 100644 --- a/cpukit/score/include/rtems/score/objectimpl.h +++ b/cpukit/score/include/rtems/score/objectimpl.h @@ -213,8 +213,8 @@ extern uint16_t _Objects_Maximum_nodes; * class. From the ID, we can go to one of these information blocks, * and obtain a pointer to the appropriate object control block. */ -extern Objects_Information - **_Objects_Information_table[OBJECTS_APIS_LAST + 1]; +extern Objects_Information ** const +_Objects_Information_table[ OBJECTS_APIS_LAST + 1 ]; /** * This function extends an object class information record. -- cgit v1.2.3