change log for rtems (2011-10-15)

rtems-vc at rtems.org rtems-vc at rtems.org
Sat Oct 15 10:12:54 UTC 2011


 *ralf*:
2011-10-15	Ralf Corsépius <ralf.corsepius at rtems.org>

	* psxhdrs/key01.c, psxhdrs/key02.c, psxhdrs/key03.c,
	psxhdrs/key04.c: Let test() return values (avoid warnings).

M  1.365  testsuites/psxtests/ChangeLog
M   1.12  testsuites/psxtests/psxhdrs/key01.c
M   1.12  testsuites/psxtests/psxhdrs/key02.c
M   1.12  testsuites/psxtests/psxhdrs/key03.c
M   1.11  testsuites/psxtests/psxhdrs/key04.c

diff -u rtems/testsuites/psxtests/ChangeLog:1.364 rtems/testsuites/psxtests/ChangeLog:1.365
--- rtems/testsuites/psxtests/ChangeLog:1.364	Sat Oct 15 00:31:25 2011
+++ rtems/testsuites/psxtests/ChangeLog	Sat Oct 15 04:19:50 2011
@@ -1,5 +1,7 @@
 2011-10-15	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* psxhdrs/key01.c, psxhdrs/key02.c, psxhdrs/key03.c,
+	psxhdrs/key04.c: Let test() return values (avoid warnings).
 	* psxhdrs/clock01.c, psxhdrs/clock02.c, psxhdrs/clock03.c,
 	psxhdrs/clock04.c, psxhdrs/clock05.c, psxhdrs/clock06.c:
 	Let test() return values (avoid warnings).

diff -u rtems/testsuites/psxtests/psxhdrs/key01.c:1.11 rtems/testsuites/psxtests/psxhdrs/key01.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/key01.c:1.11	Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/key01.c	Sat Oct 15 04:19:50 2011
@@ -22,7 +22,7 @@
 #error "rtems is supposed to have pthread_key_create"
 #endif
 
-void test( void );
+int test( void );
 void key_destructor( void *argument );
 
 void key_destructor(
@@ -31,10 +31,12 @@
 {
 }
 
-void test( void )
+int test( void )
 {
   pthread_key_t    key;
   int              result;
 
   result = pthread_key_create( &key, key_destructor );
+  
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key02.c:1.11 rtems/testsuites/psxtests/psxhdrs/key02.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/key02.c:1.11	Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/key02.c	Sat Oct 15 04:19:50 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have pthread_setspecific"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pthread_key_t    key;
   int              value;
@@ -34,4 +34,6 @@
   value = 0;
 
   result = pthread_setspecific( key, &value );
+  
+  return result;
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key03.c:1.11 rtems/testsuites/psxtests/psxhdrs/key03.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/key03.c:1.11	Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/key03.c	Sat Oct 15 04:19:50 2011
@@ -22,9 +22,9 @@
 #error "rtems is supposed to have pthread_getspecific"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pthread_key_t    key;
   void            *value;
@@ -32,4 +32,6 @@
   key = 0;
 
   value = pthread_getspecific( key );
+  
+  return (value != 0);
 }

diff -u rtems/testsuites/psxtests/psxhdrs/key04.c:1.10 rtems/testsuites/psxtests/psxhdrs/key04.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/key04.c:1.10	Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/key04.c	Sat Oct 15 04:19:50 2011
@@ -22,12 +22,14 @@
 #error "rtems is supposed to have pthread_key_delete"
 #endif
 
-void test( void );
+int test( void );
 
-void test( void )
+int test( void )
 {
   pthread_key_t    key = 0;
   int              result;
 
   result = pthread_key_delete( key );
+  
+  return result;
 }



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111015/590b0297/attachment-0001.html>


More information about the vc mailing list