change log for rtems (2011-10-17)
rtems-vc at rtems.org
rtems-vc at rtems.org
Mon Oct 17 12:12:20 UTC 2011
*ralf*:
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
* psxhdrs/mutex01.c, psxhdrs/mutex02.c, psxhdrs/mutex03.c,
psxhdrs/mutex04.c, psxhdrs/mutex05.c, psxhdrs/mutex06.c,
psxhdrs/mutex07.c, psxhdrs/mutex08.c, psxhdrs/mutex09.c,
psxhdrs/mutex10.c, psxhdrs/mutex11.c, psxhdrs/mutex12.c,
psxhdrs/mutex13.c, psxhdrs/mutex14.c, psxhdrs/mutex15.c,
psxhdrs/mutex16.c: Let test() return values (avoid warnings).
M 1.369 testsuites/psxtests/ChangeLog
M 1.13 testsuites/psxtests/psxhdrs/mutex01.c
M 1.13 testsuites/psxtests/psxhdrs/mutex02.c
M 1.12 testsuites/psxtests/psxhdrs/mutex03.c
M 1.12 testsuites/psxtests/psxhdrs/mutex04.c
M 1.12 testsuites/psxtests/psxhdrs/mutex05.c
M 1.12 testsuites/psxtests/psxhdrs/mutex06.c
M 1.12 testsuites/psxtests/psxhdrs/mutex07.c
M 1.12 testsuites/psxtests/psxhdrs/mutex08.c
M 1.12 testsuites/psxtests/psxhdrs/mutex09.c
M 1.11 testsuites/psxtests/psxhdrs/mutex10.c
M 1.11 testsuites/psxtests/psxhdrs/mutex11.c
M 1.11 testsuites/psxtests/psxhdrs/mutex12.c
M 1.11 testsuites/psxtests/psxhdrs/mutex13.c
M 1.11 testsuites/psxtests/psxhdrs/mutex14.c
M 1.11 testsuites/psxtests/psxhdrs/mutex15.c
M 1.11 testsuites/psxtests/psxhdrs/mutex16.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.368 rtems/testsuites/psxtests/ChangeLog:1.369
--- rtems/testsuites/psxtests/ChangeLog:1.368 Mon Oct 17 05:05:43 2011
+++ rtems/testsuites/psxtests/ChangeLog Mon Oct 17 06:17:11 2011
@@ -1,5 +1,14 @@
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * psxhdrs/mutex01.c, psxhdrs/mutex02.c, psxhdrs/mutex03.c,
+ psxhdrs/mutex04.c, psxhdrs/mutex05.c, psxhdrs/mutex06.c,
+ psxhdrs/mutex07.c, psxhdrs/mutex08.c, psxhdrs/mutex09.c,
+ psxhdrs/mutex10.c, psxhdrs/mutex11.c, psxhdrs/mutex12.c,
+ psxhdrs/mutex13.c, psxhdrs/mutex14.c, psxhdrs/mutex15.c,
+ psxhdrs/mutex16.c: Let test() return values (avoid warnings).
+
+2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+
* psxhdrs/proc01.c, psxhdrs/proc02.c, psxhdrs/proc03.c,
psxhdrs/proc04.c, psxhdrs/proc05.c, psxhdrs/proc06.c,
psxhdrs/proc07.c, psxhdrs/proc08.c, psxhdrs/proc09.c,
diff -u rtems/testsuites/psxtests/psxhdrs/mutex01.c:1.12 rtems/testsuites/psxtests/psxhdrs/mutex01.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/mutex01.c:1.12 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex01.c Mon Oct 17 06:17:11 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutexattr_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int result;
result = pthread_mutexattr_init( &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex02.c:1.12 rtems/testsuites/psxtests/psxhdrs/mutex02.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/mutex02.c:1.12 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex02.c Mon Oct 17 06:17:11 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutexattr_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int result;
result = pthread_mutexattr_destroy( &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex03.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex03.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex03.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex03.c Mon Oct 17 06:17:11 2011
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_mutex_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutexattr_t attribute;
int result;
result = pthread_mutex_init( &mutex, &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex04.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex04.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex04.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex04.c Mon Oct 17 06:17:11 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutex_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_destroy( &mutex );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex05.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex05.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex05.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex05.c Mon Oct 17 06:17:11 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutex_lock"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_lock( &mutex );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex06.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex06.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex06.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex06.c Mon Oct 17 06:17:11 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutex_unlock"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_unlock( &mutex );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex07.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex07.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex07.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex07.c Mon Oct 17 06:17:11 2011
@@ -25,9 +25,9 @@
#error "rtems is supposed to have pthread_mutexattr_setprotocol"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int protocol;
@@ -38,4 +38,6 @@
protocol = PTHREAD_PRIO_PROTECT;
result = pthread_mutexattr_setprotocol( &attribute, protocol );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex08.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex08.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex08.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex08.c Mon Oct 17 06:17:11 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutexattr_getprioceiling"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int prioceiling = 0;
int result;
result = pthread_mutexattr_getprioceiling( &attribute, &prioceiling );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex09.c:1.11 rtems/testsuites/psxtests/psxhdrs/mutex09.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/mutex09.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex09.c Mon Oct 17 06:17:11 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutexattr_setprioceiling"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int prioceiling = 0;
int result;
result = pthread_mutexattr_setprioceiling( &attribute, prioceiling );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex10.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex10.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex10.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex10.c Mon Oct 17 06:17:11 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutexattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int pshared;
int result;
result = pthread_mutexattr_getpshared( &attribute, &pshared );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex11.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex11.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex11.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex11.c Mon Oct 17 06:17:11 2011
@@ -25,9 +25,9 @@
#error "rtems is supposed to have pthread_mutexattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int pshared;
@@ -37,4 +37,6 @@
pshared = PTHREAD_PROCESS_PRIVATE;
result = pthread_mutexattr_setpshared( &attribute, pshared );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex12.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex12.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex12.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex12.c Mon Oct 17 06:17:11 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_mutex_trylock"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_mutex_trylock( &mutex );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex13.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex13.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex13.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex13.c Mon Oct 17 06:17:11 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutex_timedlock"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
struct timespec timeout;
int result;
result = pthread_mutex_timedlock( &mutex, &timeout );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex14.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex14.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex14.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex14.c Mon Oct 17 06:17:11 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutexattr_getprotocol"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutexattr_t attribute;
int protocol;
int result;
result = pthread_mutexattr_getprotocol( &attribute, &protocol );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex15.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex15.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex15.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex15.c Mon Oct 17 06:17:11 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_mutex_getprioceiling"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex;
int prioceiling;
int result;
result = pthread_mutex_getprioceiling( &mutex, &prioceiling );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/mutex16.c:1.10 rtems/testsuites/psxtests/psxhdrs/mutex16.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/mutex16.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/mutex16.c Mon Oct 17 06:17:11 2011
@@ -25,9 +25,9 @@
#error "rtems is supposed to have pthread_mutex_setprioceiling"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_mutex_t mutex;
int prioceiling;
@@ -37,4 +37,6 @@
prioceiling = 0;
result = pthread_mutex_setprioceiling( &mutex, prioceiling, &oldceiling );
+
+ return result;
}
*ralf*:
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
* psxhdrs/cond01.c, psxhdrs/cond02.c, psxhdrs/cond03.c,
psxhdrs/cond04.c, psxhdrs/cond05.c, psxhdrs/cond06.c,
psxhdrs/cond07.c, psxhdrs/cond08.c, psxhdrs/cond09.c,
psxhdrs/cond10.c: Let test() return values (avoid warnings).
M 1.370 testsuites/psxtests/ChangeLog
M 1.13 testsuites/psxtests/psxhdrs/cond01.c
M 1.13 testsuites/psxtests/psxhdrs/cond02.c
M 1.12 testsuites/psxtests/psxhdrs/cond03.c
M 1.12 testsuites/psxtests/psxhdrs/cond04.c
M 1.12 testsuites/psxtests/psxhdrs/cond05.c
M 1.12 testsuites/psxtests/psxhdrs/cond06.c
M 1.12 testsuites/psxtests/psxhdrs/cond07.c
M 1.11 testsuites/psxtests/psxhdrs/cond08.c
M 1.11 testsuites/psxtests/psxhdrs/cond09.c
M 1.11 testsuites/psxtests/psxhdrs/cond10.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.369 rtems/testsuites/psxtests/ChangeLog:1.370
--- rtems/testsuites/psxtests/ChangeLog:1.369 Mon Oct 17 06:17:11 2011
+++ rtems/testsuites/psxtests/ChangeLog Mon Oct 17 06:36:22 2011
@@ -1,5 +1,12 @@
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * psxhdrs/cond01.c, psxhdrs/cond02.c, psxhdrs/cond03.c,
+ psxhdrs/cond04.c, psxhdrs/cond05.c, psxhdrs/cond06.c,
+ psxhdrs/cond07.c, psxhdrs/cond08.c, psxhdrs/cond09.c,
+ psxhdrs/cond10.c: Let test() return values (avoid warnings).
+
+2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+
* psxhdrs/mutex01.c, psxhdrs/mutex02.c, psxhdrs/mutex03.c,
psxhdrs/mutex04.c, psxhdrs/mutex05.c, psxhdrs/mutex06.c,
psxhdrs/mutex07.c, psxhdrs/mutex08.c, psxhdrs/mutex09.c,
diff -u rtems/testsuites/psxtests/psxhdrs/cond01.c:1.12 rtems/testsuites/psxtests/psxhdrs/cond01.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/cond01.c:1.12 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond01.c Mon Oct 17 06:36:22 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_condattr_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int result;
result = pthread_condattr_init( &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond02.c:1.12 rtems/testsuites/psxtests/psxhdrs/cond02.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/cond02.c:1.12 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond02.c Mon Oct 17 06:36:23 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_condattr_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int result;
result = pthread_condattr_destroy( &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond03.c:1.11 rtems/testsuites/psxtests/psxhdrs/cond03.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/cond03.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond03.c Mon Oct 17 06:36:23 2011
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_cond_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_condattr_t attribute;
int result;
result = pthread_cond_init( &cond, &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond04.c:1.11 rtems/testsuites/psxtests/psxhdrs/cond04.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/cond04.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond04.c Mon Oct 17 06:36:23 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_cond_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_destroy( &cond );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond05.c:1.11 rtems/testsuites/psxtests/psxhdrs/cond05.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/cond05.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond05.c Mon Oct 17 06:36:23 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_cond_signal"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_signal( &cond );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond06.c:1.11 rtems/testsuites/psxtests/psxhdrs/cond06.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/cond06.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond06.c Mon Oct 17 06:36:23 2011
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_cond_wait"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_cond_wait( &cond, &mutex );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond07.c:1.11 rtems/testsuites/psxtests/psxhdrs/cond07.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/cond07.c:1.11 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond07.c Mon Oct 17 06:36:23 2011
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_cond_timedwait"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -32,4 +32,6 @@
int result;
result = pthread_cond_timedwait( &cond, &mutex, &abstime );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond08.c:1.10 rtems/testsuites/psxtests/psxhdrs/cond08.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/cond08.c:1.10 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond08.c Mon Oct 17 06:36:23 2011
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_condattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int pshared;
int result;
result = pthread_condattr_getpshared( &attribute, &pshared );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond09.c:1.10 rtems/testsuites/psxtests/psxhdrs/cond09.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/cond09.c:1.10 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond09.c Mon Oct 17 06:36:23 2011
@@ -25,9 +25,9 @@
#error "rtems is supposed to have pthread_condattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int pshared;
@@ -37,4 +37,6 @@
pshared = PTHREAD_PROCESS_PRIVATE;
result = pthread_condattr_setpshared( &attribute, pshared );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/cond10.c:1.10 rtems/testsuites/psxtests/psxhdrs/cond10.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/cond10.c:1.10 Tue Feb 22 03:47:32 2011
+++ rtems/testsuites/psxtests/psxhdrs/cond10.c Mon Oct 17 06:36:23 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_cond_broadcast"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_broadcast( &cond );
+
+ return result;
}
*ralf*:
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
* psxhdrs/pthread01.c, psxhdrs/pthread02.c, psxhdrs/pthread03.c,
psxhdrs/pthread04.c, psxhdrs/pthread05.c, psxhdrs/pthread06.c,
psxhdrs/pthread07.c, psxhdrs/pthread09.c, psxhdrs/pthread10.c,
psxhdrs/pthread11.c, psxhdrs/pthread12.c, psxhdrs/pthread13.c,
psxhdrs/pthread14.c, psxhdrs/pthread15.c, psxhdrs/pthread16.c,
psxhdrs/pthread17.c, psxhdrs/pthread18.c, psxhdrs/pthread19.c,
psxhdrs/pthread20.c, psxhdrs/pthread21.c, psxhdrs/pthread22.c,
psxhdrs/pthread23.c, psxhdrs/pthread24.c, psxhdrs/pthread25.c,
psxhdrs/pthread26.c, psxhdrs/pthread27.c, psxhdrs/pthread28.c,
psxhdrs/pthread29.c, psxhdrs/pthread30.c, psxhdrs/pthread34.c,
psxhdrs/pthread35.c, psxhdrs/pthread36.c, psxhdrs/pthread37.c,
psxhdrs/pthread38.c, psxhdrs/pthread39.c, psxhdrs/pthread40.c:
Let test() return values (avoid warnings).
M 1.371 testsuites/psxtests/ChangeLog
M 1.13 testsuites/psxtests/psxhdrs/pthread01.c
M 1.12 testsuites/psxtests/psxhdrs/pthread02.c
M 1.13 testsuites/psxtests/psxhdrs/pthread03.c
M 1.13 testsuites/psxtests/psxhdrs/pthread04.c
M 1.12 testsuites/psxtests/psxhdrs/pthread05.c
M 1.13 testsuites/psxtests/psxhdrs/pthread06.c
M 1.13 testsuites/psxtests/psxhdrs/pthread07.c
M 1.12 testsuites/psxtests/psxhdrs/pthread09.c
M 1.13 testsuites/psxtests/psxhdrs/pthread10.c
M 1.15 testsuites/psxtests/psxhdrs/pthread11.c
M 1.13 testsuites/psxtests/psxhdrs/pthread12.c
M 1.14 testsuites/psxtests/psxhdrs/pthread13.c
M 1.13 testsuites/psxtests/psxhdrs/pthread14.c
M 1.13 testsuites/psxtests/psxhdrs/pthread15.c
M 1.13 testsuites/psxtests/psxhdrs/pthread16.c
M 1.14 testsuites/psxtests/psxhdrs/pthread17.c
M 1.13 testsuites/psxtests/psxhdrs/pthread18.c
M 1.13 testsuites/psxtests/psxhdrs/pthread19.c
M 1.13 testsuites/psxtests/psxhdrs/pthread20.c
M 1.13 testsuites/psxtests/psxhdrs/pthread21.c
M 1.15 testsuites/psxtests/psxhdrs/pthread22.c
M 1.13 testsuites/psxtests/psxhdrs/pthread23.c
M 1.10 testsuites/psxtests/psxhdrs/pthread24.c
M 1.10 testsuites/psxtests/psxhdrs/pthread25.c
M 1.12 testsuites/psxtests/psxhdrs/pthread26.c
M 1.12 testsuites/psxtests/psxhdrs/pthread27.c
M 1.12 testsuites/psxtests/psxhdrs/pthread28.c
M 1.12 testsuites/psxtests/psxhdrs/pthread29.c
M 1.12 testsuites/psxtests/psxhdrs/pthread30.c
M 1.11 testsuites/psxtests/psxhdrs/pthread34.c
M 1.12 testsuites/psxtests/psxhdrs/pthread35.c
M 1.12 testsuites/psxtests/psxhdrs/pthread36.c
M 1.3 testsuites/psxtests/psxhdrs/pthread37.c
M 1.3 testsuites/psxtests/psxhdrs/pthread38.c
M 1.3 testsuites/psxtests/psxhdrs/pthread39.c
M 1.3 testsuites/psxtests/psxhdrs/pthread40.c
diff -u rtems/testsuites/psxtests/ChangeLog:1.370 rtems/testsuites/psxtests/ChangeLog:1.371
--- rtems/testsuites/psxtests/ChangeLog:1.370 Mon Oct 17 06:36:22 2011
+++ rtems/testsuites/psxtests/ChangeLog Mon Oct 17 06:39:02 2011
@@ -1,5 +1,21 @@
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * psxhdrs/pthread01.c, psxhdrs/pthread02.c, psxhdrs/pthread03.c,
+ psxhdrs/pthread04.c, psxhdrs/pthread05.c, psxhdrs/pthread06.c,
+ psxhdrs/pthread07.c, psxhdrs/pthread09.c, psxhdrs/pthread10.c,
+ psxhdrs/pthread11.c, psxhdrs/pthread12.c, psxhdrs/pthread13.c,
+ psxhdrs/pthread14.c, psxhdrs/pthread15.c, psxhdrs/pthread16.c,
+ psxhdrs/pthread17.c, psxhdrs/pthread18.c, psxhdrs/pthread19.c,
+ psxhdrs/pthread20.c, psxhdrs/pthread21.c, psxhdrs/pthread22.c,
+ psxhdrs/pthread23.c, psxhdrs/pthread24.c, psxhdrs/pthread25.c,
+ psxhdrs/pthread26.c, psxhdrs/pthread27.c, psxhdrs/pthread28.c,
+ psxhdrs/pthread29.c, psxhdrs/pthread30.c, psxhdrs/pthread34.c,
+ psxhdrs/pthread35.c, psxhdrs/pthread36.c, psxhdrs/pthread37.c,
+ psxhdrs/pthread38.c, psxhdrs/pthread39.c, psxhdrs/pthread40.c:
+ Let test() return values (avoid warnings).
+
+2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+
* psxhdrs/cond01.c, psxhdrs/cond02.c, psxhdrs/cond03.c,
psxhdrs/cond04.c, psxhdrs/cond05.c, psxhdrs/cond06.c,
psxhdrs/cond07.c, psxhdrs/cond08.c, psxhdrs/cond09.c,
diff -u rtems/testsuites/psxtests/psxhdrs/pthread01.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread01.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread01.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread01.c Mon Oct 17 06:39:02 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_attr_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int result;
result = pthread_attr_init( &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread02.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread02.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread02.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread02.c Mon Oct 17 06:39:03 2011
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_attr_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int result;
result = pthread_attr_destroy( &attribute );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread03.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread03.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread03.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread03.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_attr_setdetachstate"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int state;
@@ -34,4 +34,6 @@
state = PTHREAD_CREATE_JOINABLE;
result = pthread_attr_setdetachstate( &attribute, state );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread04.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread04.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread04.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread04.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_attr_getdetachstate"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int state;
int result;
result = pthread_attr_getdetachstate( &attribute, &state );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread05.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread05.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread05.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread05.c Mon Oct 17 06:39:03 2011
@@ -27,9 +27,9 @@
#error "rtems is supposed to have pthread_setstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
@@ -38,4 +38,6 @@
size = PTHREAD_STACK_MIN;
result = pthread_attr_setstacksize( &attribute, size );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread06.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread06.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread06.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread06.c Mon Oct 17 06:39:03 2011
@@ -26,13 +26,15 @@
#error "rtems is supposed to have pthread_getstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
int result;
result = pthread_attr_getstacksize( &attribute, &size );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread07.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread07.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread07.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread07.c Mon Oct 17 06:39:03 2011
@@ -22,7 +22,7 @@
#error "rtems is supposed to have pthread_create"
#endif
-void test( void );
+int test( void );
void *test_task( void * arg );
void *test_task(
@@ -34,7 +34,7 @@
return NULL;
}
-void test( void )
+int test( void )
{
pthread_t thread;
pthread_attr_t attribute;
@@ -42,4 +42,6 @@
int result;
result = pthread_create( &thread, &attribute, test_task, arg );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread09.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread09.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread09.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread09.c Mon Oct 17 06:39:03 2011
@@ -22,11 +22,13 @@
#error "rtems is supposed to have pthread_self"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t self;
self = pthread_self();
+
+ return ( self != 0 );
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread10.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread10.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread10.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread10.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_equal"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t id_1 = 0;
pthread_t id_2 = 0;
int result;
result = pthread_equal( id_1, id_2 );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread11.c:1.14 rtems/testsuites/psxtests/psxhdrs/pthread11.c:1.15
--- rtems/testsuites/psxtests/psxhdrs/pthread11.c:1.14 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread11.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_setschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
int policy;
@@ -54,4 +54,6 @@
#endif
result = pthread_setschedparam( thread, policy, ¶m );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread12.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread12.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread12.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread12.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_getschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
int policy;
@@ -34,4 +34,6 @@
thread = 0;
result = pthread_getschedparam( thread, &policy, ¶m );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread13.c:1.13 rtems/testsuites/psxtests/psxhdrs/pthread13.c:1.14
--- rtems/testsuites/psxtests/psxhdrs/pthread13.c:1.13 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread13.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_attr_setscope"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int contentionscope;
@@ -34,4 +34,6 @@
contentionscope = PTHREAD_SCOPE_PROCESS;
result = pthread_attr_setscope( &attr, contentionscope );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread14.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread14.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread14.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread14.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getscope"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int contentionscope;
int result;
result = pthread_attr_getscope( &attr, &contentionscope );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread15.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread15.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread15.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread15.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_attr_setinheritsched"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int inheritsched;
@@ -34,4 +34,6 @@
inheritsched = PTHREAD_EXPLICIT_SCHED;
result = pthread_attr_setinheritsched( &attr, inheritsched );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread16.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread16.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread16.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread16.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getinheritsched"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int inheritsched;
int result;
result = pthread_attr_getinheritsched( &attr, &inheritsched );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread17.c:1.13 rtems/testsuites/psxtests/psxhdrs/pthread17.c:1.14
--- rtems/testsuites/psxtests/psxhdrs/pthread17.c:1.13 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread17.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_attr_setschedpolicy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int policy;
@@ -38,4 +38,6 @@
#endif
result = pthread_attr_setschedpolicy( &attr, policy );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread18.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread18.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread18.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread18.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getschedpolicy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int policy;
int result;
result = pthread_attr_getschedpolicy( &attr, &policy );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread19.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread19.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread19.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread19.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_setschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
struct sched_param param;
int result;
result = pthread_attr_setschedparam( &attr, ¶m );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread20.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread20.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread20.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread20.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
struct sched_param param;
int result;
result = pthread_attr_getschedparam( &attr, ¶m );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread21.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread21.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread21.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread21.c Mon Oct 17 06:39:03 2011
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_detach"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
int result;
thread = 0;
result = pthread_detach( thread );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread22.c:1.14 rtems/testsuites/psxtests/psxhdrs/pthread22.c:1.15
--- rtems/testsuites/psxtests/psxhdrs/pthread22.c:1.14 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread22.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_setschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread = 0;
int policy;
@@ -52,4 +52,6 @@
#endif
result = pthread_setschedparam( thread, policy, ¶m );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread23.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread23.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread23.c:1.12 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread23.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_getschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread = 0;
int policy;
@@ -32,4 +32,6 @@
int result;
result = pthread_getschedparam( thread, &policy, ¶m );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread24.c:1.9 rtems/testsuites/psxtests/psxhdrs/pthread24.c:1.10
--- rtems/testsuites/psxtests/psxhdrs/pthread24.c:1.9 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread24.c Mon Oct 17 06:39:03 2011
@@ -27,9 +27,9 @@
#error "rtems is supposed to have pthread_setstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -38,4 +38,6 @@
stackaddr = NULL;
result = pthread_attr_setstackaddr( &attribute, stackaddr );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread25.c:1.9 rtems/testsuites/psxtests/psxhdrs/pthread25.c:1.10
--- rtems/testsuites/psxtests/psxhdrs/pthread25.c:1.9 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread25.c Mon Oct 17 06:39:03 2011
@@ -27,13 +27,15 @@
#error "rtems is supposed to have pthread_getstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
int result;
result = pthread_attr_getstackaddr( &attribute, &stackaddr );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread26.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread26.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread26.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread26.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_join"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
void *value_ptr;
@@ -33,4 +33,6 @@
thread = 0;
result = pthread_join( thread, &value_ptr );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread27.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread27.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread27.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread27.c Mon Oct 17 06:39:03 2011
@@ -22,17 +22,19 @@
#error "rtems is supposed to have pthread_once"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
pthread_once_t once_control = PTHREAD_ONCE_INIT;
int result;
result = pthread_once( &once_control, init_routine );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread28.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread28.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread28.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread28.c Mon Oct 17 06:39:03 2011
@@ -22,18 +22,20 @@
#error "rtems is supposed to have pthread_cancel"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
pthread_t thread;
int result;
thread = 0;
result = pthread_cancel( thread );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread29.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread29.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread29.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread29.c Mon Oct 17 06:39:03 2011
@@ -22,14 +22,14 @@
#error "rtems is supposed to have pthread_setcancelstate"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
int state;
int oldstate;
@@ -39,4 +39,6 @@
state = PTHREAD_CANCEL_DISABLE;
result = pthread_setcancelstate( state, &oldstate );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread30.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread30.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread30.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread30.c Mon Oct 17 06:39:03 2011
@@ -22,14 +22,14 @@
#error "rtems is supposed to have pthread_setcanceltype"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
int type;
int oldtype;
@@ -39,4 +39,6 @@
type = PTHREAD_CANCEL_ASYNCHRONOUS;
result = pthread_setcanceltype( type, &oldtype );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread34.c:1.10 rtems/testsuites/psxtests/psxhdrs/pthread34.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/pthread34.c:1.10 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread34.c Mon Oct 17 06:39:03 2011
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_getcpuclockid"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
clockid_t clock_id;
@@ -33,4 +33,6 @@
thread = 0;
result = pthread_getcpuclockid( thread, &clock_id );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread35.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread35.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread35.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread35.c Mon Oct 17 06:39:03 2011
@@ -28,9 +28,9 @@
#error "rtems is supposed to have pthread_attr_setcputime"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int clock_allowed;
@@ -40,4 +40,6 @@
clock_allowed = CLOCK_DISALLOWED;
result = pthread_attr_setcputime( &attr, clock_allowed );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread36.c:1.11 rtems/testsuites/psxtests/psxhdrs/pthread36.c:1.12
--- rtems/testsuites/psxtests/psxhdrs/pthread36.c:1.11 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread36.c Mon Oct 17 06:39:03 2011
@@ -28,13 +28,15 @@
#error "rtems is supposed to have pthread_attr_getcputime"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int clock_allowed;
int result;
result = pthread_attr_getcputime( &attr, &clock_allowed );
+
+ return result;
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread37.c:1.2 rtems/testsuites/psxtests/psxhdrs/pthread37.c:1.3
--- rtems/testsuites/psxtests/psxhdrs/pthread37.c:1.2 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread37.c Mon Oct 17 06:39:03 2011
@@ -28,9 +28,9 @@
#error "rtems is supposed to have pthread_setstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -41,5 +41,7 @@
stacksize = 1024;
result = pthread_attr_setstack( &attribute, stackaddr, stacksize );
+
+ return result;
}
#endif
diff -u rtems/testsuites/psxtests/psxhdrs/pthread38.c:1.2 rtems/testsuites/psxtests/psxhdrs/pthread38.c:1.3
--- rtems/testsuites/psxtests/psxhdrs/pthread38.c:1.2 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread38.c Mon Oct 17 06:39:03 2011
@@ -28,9 +28,9 @@
#error "rtems is supposed to have pthread_getstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -38,5 +38,7 @@
int result;
result = pthread_attr_getstack( &attribute, &stackaddr, &stacksize );
+
+ return result;
}
#endif
diff -u rtems/testsuites/psxtests/psxhdrs/pthread39.c:1.2 rtems/testsuites/psxtests/psxhdrs/pthread39.c:1.3
--- rtems/testsuites/psxtests/psxhdrs/pthread39.c:1.2 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread39.c Mon Oct 17 06:39:04 2011
@@ -24,9 +24,9 @@
#error "rtems is supposed to have pthread_setstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
@@ -35,5 +35,7 @@
size = PTHREAD_STACK_MIN;
result = pthread_attr_setguardsize( &attribute, size );
+
+ return result;
}
#endif
diff -u rtems/testsuites/psxtests/psxhdrs/pthread40.c:1.2 rtems/testsuites/psxtests/psxhdrs/pthread40.c:1.3
--- rtems/testsuites/psxtests/psxhdrs/pthread40.c:1.2 Tue Feb 22 03:47:33 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread40.c Mon Oct 17 06:39:04 2011
@@ -23,14 +23,16 @@
#error "rtems is supposed to have pthread_getstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
int result;
result = pthread_attr_getguardsize( &attribute, &size );
+
+ return result;
}
#endif
*ralf*:
Whitespace fixes.
M 1.13 testsuites/psxtests/psxhdrs/pthread09.c
M 1.11 testsuites/psxtests/psxhdrs/pthread25.c
diff -u rtems/testsuites/psxtests/psxhdrs/pthread09.c:1.12 rtems/testsuites/psxtests/psxhdrs/pthread09.c:1.13
--- rtems/testsuites/psxtests/psxhdrs/pthread09.c:1.12 Mon Oct 17 06:39:03 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread09.c Mon Oct 17 06:40:01 2011
@@ -29,6 +29,6 @@
pthread_t self;
self = pthread_self();
-
+
return ( self != 0 );
}
diff -u rtems/testsuites/psxtests/psxhdrs/pthread25.c:1.10 rtems/testsuites/psxtests/psxhdrs/pthread25.c:1.11
--- rtems/testsuites/psxtests/psxhdrs/pthread25.c:1.10 Mon Oct 17 06:39:03 2011
+++ rtems/testsuites/psxtests/psxhdrs/pthread25.c Mon Oct 17 06:40:02 2011
@@ -36,6 +36,6 @@
int result;
result = pthread_attr_getstackaddr( &attribute, &stackaddr );
-
+
return result;
}
*ralf*:
2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
* libchip/rtc/icm7170.c (icm7170_get_time): Remove unused var setReg.
* libchip/rtc/icm7170.c (icm7170_set_time): Remove unused var getReg.
M 1.561 c/src/ChangeLog
M 1.10 c/src/libchip/rtc/icm7170.c
diff -u rtems/c/src/ChangeLog:1.560 rtems/c/src/ChangeLog:1.561
--- rtems/c/src/ChangeLog:1.560 Tue Oct 11 00:19:13 2011
+++ rtems/c/src/ChangeLog Mon Oct 17 06:56:31 2011
@@ -1,3 +1,8 @@
+2011-10-17 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * libchip/rtc/icm7170.c (icm7170_get_time): Remove unused var setReg.
+ * libchip/rtc/icm7170.c (icm7170_set_time): Remove unused var getReg.
+
2011-10-11 Ralf Corsépius <ralf.corsepius at rtems.org>
* libchip/network/smc91111.c: Eliminate unused var "success".
diff -u rtems/c/src/libchip/rtc/icm7170.c:1.9 rtems/c/src/libchip/rtc/icm7170.c:1.10
--- rtems/c/src/libchip/rtc/icm7170.c:1.9 Sun Apr 25 16:18:06 2010
+++ rtems/c/src/libchip/rtc/icm7170.c Mon Oct 17 06:56:31 2011
@@ -67,12 +67,10 @@
{
uint32_t icm7170;
getRegister_f getReg;
- setRegister_f setReg;
uint32_t year;
icm7170 = RTC_Table[ minor ].ulCtrlPort1;
getReg = RTC_Table[ minor ].getRegister;
- setReg = RTC_Table[ minor ].setRegister;
/*
* Put the RTC into read mode
@@ -119,13 +117,11 @@
)
{
uintptr_t icm7170;
- getRegister_f getReg;
setRegister_f setReg;
uint32_t year;
uintptr_t clock;
icm7170 = RTC_Table[ minor ].ulCtrlPort1;
- getReg = RTC_Table[ minor ].getRegister;
setReg = RTC_Table[ minor ].setRegister;
clock = (uintptr_t) RTC_Table[ minor ].pDeviceParams;
--
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/20111017/0ed4e848/attachment-0001.html>
More information about the vc
mailing list