diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-21 19:59:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-08-21 19:59:56 +0000 |
commit | 0b10f44e2d979f32746b92c1832c96e988d517a1 (patch) | |
tree | 103030c3f03caba4921b2a54bfecad72ba791ad1 /testsuites/psxtests | |
parent | 391f35c8ffd95a9610a490ea868bd3e58fae3cd6 (diff) |
2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1890/cpukit
* psxmsgq01/init.c: POSIX says msg_prio is allowed to be NULL.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r-- | testsuites/psxtests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/psxtests/psxmsgq01/init.c | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index 6c583d8082..e85471fd18 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,8 @@ +2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com> + + PR 1890/cpukit + * psxmsgq01/init.c: POSIX says msg_prio is allowed to be NULL. + 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com> PR 1855/cpukit diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c index 8bd1abb14b..beaa1149a8 100644 --- a/testsuites/psxtests/psxmsgq01/init.c +++ b/testsuites/psxtests/psxmsgq01/init.c @@ -1137,11 +1137,10 @@ void verify_timedout_mq_timedreceive( int is_blocking ) { - char message[ 100 ]; - unsigned int priority; - struct timespec tm; - struct timeval tv1, tv2, tv3; - struct timezone tz1, tz2; + char message[ 100 ]; + struct timespec tm; + struct timeval tv1, tv2, tv3; + struct timezone tz1, tz2; int status; printf( @@ -1154,7 +1153,7 @@ void verify_timedout_mq_timedreceive( tm.tv_sec = tv1.tv_sec - 1; tm.tv_nsec = tv1.tv_usec * 1000; - status = mq_timedreceive( Test_q[ que ].mq, message, 100, &priority, &tm ); + status = mq_timedreceive( Test_q[ que ].mq, message, 100, NULL, &tm ); gettimeofday( &tv2, &tz2 ); tv3.tv_sec = tv2.tv_sec - tv1.tv_sec; |