diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 07:11:29 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-10 07:11:29 +0200 |
commit | 8c5267a268ae8ce599e61d0e1bdff585e26187c5 (patch) | |
tree | c00239d975a66c59b49c7515c76db71692c04dee /testsuites/psxtests/psxgetattrnp01/init.c | |
parent | posix: Remove rtems_pthread_attribute_compare() (diff) | |
download | rtems-8c5267a268ae8ce599e61d0e1bdff585e26187c5.tar.bz2 |
posix: Simplify pthread_attr_setstack()
Simplify
* pthread_attr_setstack(), and
* pthread_attr_setstacksize().
Update #2514.
Diffstat (limited to 'testsuites/psxtests/psxgetattrnp01/init.c')
-rw-r--r-- | testsuites/psxtests/psxgetattrnp01/init.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testsuites/psxtests/psxgetattrnp01/init.c b/testsuites/psxtests/psxgetattrnp01/init.c index e5c3975255..2b7d699abd 100644 --- a/testsuites/psxtests/psxgetattrnp01/init.c +++ b/testsuites/psxtests/psxgetattrnp01/init.c @@ -47,7 +47,10 @@ static int attribute_compare( attr1->stackaddr != attr2->stackaddr ) return 1; - if ( attr1->stacksize != attr2->stacksize ) + if ( + attr1->stacksize != 0 && + attr2->stacksize != 0 && + attr1->stacksize != attr2->stacksize ) return 1; if ( attr1->contentionscope != attr2->contentionscope ) |