svn commit: branches/uClibc-nptl/test/nptl

sjhill at uclibc.org sjhill at uclibc.org
Thu Nov 29 05:01:01 UTC 2007


Author: sjhill
Date: 2007-11-28 21:01:01 -0800 (Wed, 28 Nov 2007)
New Revision: 20573

Log:
Fix test, but add casts back in needed to silence compiler warnings.


Modified:
   branches/uClibc-nptl/test/nptl/tst-mqueue1.c


Changeset:
Modified: branches/uClibc-nptl/test/nptl/tst-mqueue1.c
===================================================================
--- branches/uClibc-nptl/test/nptl/tst-mqueue1.c	2007-11-29 04:46:42 UTC (rev 20572)
+++ branches/uClibc-nptl/test/nptl/tst-mqueue1.c	2007-11-29 05:01:01 UTC (rev 20573)
@@ -72,7 +72,7 @@
 {
   int result = 0;
 
-  unsigned char v []
+  char v []
     = { 0x32, 0x62, 0x22, 0x31, 0x11, 0x73, 0x61, 0x21, 0x72, 0x71, 0x81 };
 
   struct mq_attr attr;
@@ -208,9 +208,9 @@
       for (int i = 0; i < 10; ++i)
 	{
 	  if (i & 1)
-	    rets = mq_receive (q, &vr[i], 1, &prio);
+	    rets = mq_receive (q, (char *) &vr[i], 1, &prio);
 	  else
-	    rets = mq_timedreceive (q, &vr[i], 1, &prio, &ts);
+	    rets = mq_timedreceive (q, (char *) &vr[i], 1, &prio, &ts);
 
 	  if (rets != 1)
 	    {
@@ -236,7 +236,7 @@
 	  result = 1;
 	}
 
-      rets = mq_timedreceive (q, &vr[10], 1, &prio, &ts);
+      rets = mq_timedreceive (q, (char *) &vr[10], 1, &prio, &ts);
       if (rets != -1)
 	{
 	  puts ("mq_timedreceive on empty queue did not fail");
@@ -251,7 +251,7 @@
 
       if (nonblock)
 	{
-	  ret = mq_receive (q, &vr[10], 1, &prio);
+	  ret = mq_receive (q, (char *) &vr[10], 1, &prio);
 	  if (ret != -1)
 	    {
 	      puts ("mq_receive on empty non-blocking queue did not fail");
@@ -414,4 +414,4 @@
   return result;
 }
 
-#include "../test-skeleton.c"
\ No newline at end of file
+#include "../test-skeleton.c"




More information about the uClibc-cvs mailing list