summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cpukit/ChangeLog5
-rw-r--r--cpukit/posix/include/rtems/posix/psignal.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 53b09ea7fb..1144669d01 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-24 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * posix/include/rtems/posix/psignal.h: Fix typo in converting method
+ from macro to static inline.
+
2008-11-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am, posix/include/rtems/posix/psignal.h: Add stubs for
diff --git a/cpukit/posix/include/rtems/posix/psignal.h b/cpukit/posix/include/rtems/posix/psignal.h
index 2d5a450e91..e02cd8b4d6 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 1 << (sig - 1);
}
#define is_valid_signo( _sig ) \