2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com>

PR 1890/cpukit
	* psxmsgq01/init.c: POSIX says msg_prio is allowed to be NULL.
This commit is contained in:
Joel Sherrill
2011-08-21 19:59:51 +00:00
parent e5ca6593f7
commit 08ef1631cf
2 changed files with 10 additions and 6 deletions
+5
View File
@@ -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-08-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
* psxfatal_support/init.c: Ensure that _Thread_BSP_context is
+5 -6
View File
@@ -1141,11 +1141,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(
@@ -1158,7 +1157,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;