summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectinitializeinformation.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-11 20:38:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-11 20:38:16 +0000
commit2af90ff1a189d4ff80a06d8a547d0e87de7f4033 (patch)
tree429ae74d8dd98f53f243fed84457b508f84bec84 /cpukit/score/src/objectinitializeinformation.c
parent2011-02-11 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-2af90ff1a189d4ff80a06d8a547d0e87de7f4033.tar.bz2
2011-02-11 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/src/semtranslatereturncode.c, score/include/rtems/score/coremutex.h, score/src/coremutexsurrender.c, score/src/objectinitializeinformation.c: Disable code not reachable when POSIX is not enabled.
Diffstat (limited to 'cpukit/score/src/objectinitializeinformation.c')
-rw-r--r--cpukit/score/src/objectinitializeinformation.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/cpukit/score/src/objectinitializeinformation.c b/cpukit/score/src/objectinitializeinformation.c
index 771637c8ca..c8ef33e466 100644
--- a/cpukit/score/src/objectinitializeinformation.c
+++ b/cpukit/score/src/objectinitializeinformation.c
@@ -128,13 +128,18 @@ void _Objects_Initialize_information(
/*
* Calculate the maximum name length
+ *
+ * NOTE: Always 4 bytes long in Class so aligned. It is POSIX name
+ * lengths that may be an odd number of bytes.
*/
name_length = maximum_name_length;
- if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
- name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
- ~(OBJECTS_NAME_ALIGNMENT-1);
-
+ #if !defined(RTEMS_POSIX_API)
+ if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
+ name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
+ ~(OBJECTS_NAME_ALIGNMENT-1);
+ #endif
+
information->name_length = name_length;
_Chain_Initialize_empty( &information->Inactive );