diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-08 18:07:26 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-05-08 18:07:26 +0000 |
commit | 604f35e2dd878b2fd8bebbf2994f6d91e697a03e (patch) | |
tree | 882d8e3f016cd53b1f4ad80e769f9a3a1320227a /cpukit | |
parent | 2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-604f35e2dd878b2fd8bebbf2994f6d91e697a03e.tar.bz2 |
2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/include/rtems/posix/psignal.h,
rtems/inline/rtems/rtems/support.inl: Remove warnings.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/posix/include/rtems/posix/psignal.h | 2 | ||||
-rw-r--r-- | cpukit/rtems/inline/rtems/rtems/support.inl | 8 |
3 files changed, 10 insertions, 5 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 111e14c160..bdf90fa8b8 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com> + * posix/include/rtems/posix/psignal.h, + rtems/inline/rtems/rtems/support.inl: Remove warnings. + +2009-05-08 Joel Sherrill <joel.sherrill@oarcorp.com> + * sapi/include/rtems/config.h: Switch from ssize_t to uintptr_t for work space size since it is larger than a single allocatable object. diff --git a/cpukit/posix/include/rtems/posix/psignal.h b/cpukit/posix/include/rtems/posix/psignal.h index cbada61ee1..37b138e036 100644 --- a/cpukit/posix/include/rtems/posix/psignal.h +++ b/cpukit/posix/include/rtems/posix/psignal.h @@ -29,7 +29,7 @@ static inline sigset_t signo_to_mask( uint32_t sig ) { - return 1 << (sig - 1); + return 1u << (sig - 1); } #define is_valid_signo( _sig ) \ diff --git a/cpukit/rtems/inline/rtems/rtems/support.inl b/cpukit/rtems/inline/rtems/rtems/support.inl index 0f4defc92f..23becf8497 100644 --- a/cpukit/rtems/inline/rtems/rtems/support.inl +++ b/cpukit/rtems/inline/rtems/rtems/support.inl @@ -53,10 +53,10 @@ RTEMS_INLINE_ROUTINE void rtems_name_to_characters( char *c4 ) { - *c1 = (name >> 24) & 0xff; - *c2 = (name >> 16) & 0xff; - *c3 = (name >> 8) & 0xff; - *c4 = name & 0xff; + *c1 = (char) ((name >> 24) & 0xff); + *c2 = (char) ((name >> 16) & 0xff); + *c3 = (char) ((name >> 8) & 0xff); + *c4 = (char) ( name & 0xff); } /**@}*/ |