forked from Imagelibrary/rtems
2004-05-21 Joel Sherrill <joel@OARcorp.com>
PR 629/rtems * cpukit/src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is <= 0, not <.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2004-05-21 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
PR 629/rtems
|
||||
* cpukit/src/mqueuecreatesupp.c: Return EINVAL is mq_maxmsg is
|
||||
<= 0, not <.
|
||||
|
||||
2004-05-21 Till Strauman <strauman@slac.stanford.edu>
|
||||
|
||||
PR 626/networking
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user