summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2004-05-21 20:11:48 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2004-05-21 20:11:48 +0000
commit58accdd0835f9544a4e1ad0f88ef8d5ea815dd83 (patch)
treee19f69f09612a4feb9849a51d62b321af3d17c79 /cpukit/posix
parent34d934a8f08edad633a6421b38789c5e886ccc23 (diff)
downloadrtems-58accdd0835f9544a4e1ad0f88ef8d5ea815dd83.tar.bz2
2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 629/rtems * cpukit/src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is <= 0, not <.
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/src/mqueuecreatesupp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/posix/src/mqueuecreatesupp.c b/cpukit/posix/src/mqueuecreatesupp.c
index 13097446c7..1259701124 100644
--- a/cpukit/posix/src/mqueuecreatesupp.c
+++ b/cpukit/posix/src/mqueuecreatesupp.c
@@ -76,12 +76,12 @@ int _POSIX_Message_queue_Create_support(
attr.mq_maxmsg = 10;
attr.mq_msgsize = 16;
} else {
- if ( attr_ptr->mq_maxmsg < 0 ){
+ if ( attr_ptr->mq_maxmsg <= 0 ){
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
}
- if ( attr_ptr->mq_msgsize < 0 ){
+ if ( attr_ptr->mq_msgsize <= 0 ){
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
}