summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrwlock01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 14:12:11 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 14:12:11 -0500
commit6c2de6052d450fa36338ed0c082647b9d535a928 (patch)
treecf352d1305edc992fceda6c7b75ab3658b982834 /testsuites/psxtests/psxrwlock01
parentlibtmtests - Eliminate missing prototype warnings (diff)
downloadrtems-6c2de6052d450fa36338ed0c082647b9d535a928.tar.bz2
psxtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/psxtests/psxrwlock01')
-rw-r--r--testsuites/psxtests/psxrwlock01/main.c8
-rw-r--r--testsuites/psxtests/psxrwlock01/test.c15
2 files changed, 16 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxrwlock01/main.c b/testsuites/psxtests/psxrwlock01/main.c
index 8a04beb474..d1acd288f4 100644
--- a/testsuites/psxtests/psxrwlock01/main.c
+++ b/testsuites/psxtests/psxrwlock01/main.c
@@ -1,7 +1,5 @@
/*
- * Simple test program -- simplified version of sample test hello.
- *
- * COPYRIGHT (c) 1989-2008.
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -18,7 +16,9 @@
#include <bsp.h>
#include <pmacros.h>
-void test_main( void );
+/* forward declarations to avoid warnings */
+rtems_task Init(rtems_task_argument ignored);
+void test_main(void);
rtems_task Init(
rtems_task_argument ignored
diff --git a/testsuites/psxtests/psxrwlock01/test.c b/testsuites/psxtests/psxrwlock01/test.c
index 14ce849752..bf16548e86 100644
--- a/testsuites/psxtests/psxrwlock01/test.c
+++ b/testsuites/psxtests/psxrwlock01/test.c
@@ -1,7 +1,11 @@
-/*
- * This test exercises the POSIX RWLock manager.
+/**
+ * @file
*
- * COPYRIGHT (c) 1989-2010.
+ * This test exercises the POSIX RWLock manager.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -21,6 +25,11 @@
/* #define __USE_XOPEN2K XXX already defined on GNU/Linux */
#include <pthread.h>
+/* forward declarations to avoid warnings */
+void *ReadLockThread(void *arg);
+void *WriteLockThread(void *arg);
+int test_main(void);
+
#if !HAVE_DECL_PTHREAD_RWLOCK_UNLOCK
/* FIXME: Newlib should provide the decl. */
extern int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);