summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-04 14:16:00 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-01-04 14:16:00 +0000
commitbfded728ec4c912f666df94867c118a1004b0165 (patch)
tree3eadb7ff7985ef295828741c6de0477ad1493193 /testsuites/psxtests
parentRemoved warning. (diff)
downloadrtems-bfded728ec4c912f666df94867c118a1004b0165.tar.bz2
Fixed warnings.
Diffstat (limited to 'testsuites/psxtests')
-rw-r--r--testsuites/psxtests/psx08/task1.c2
-rw-r--r--testsuites/psxtests/psxhdrs/proc03.c1
-rw-r--r--testsuites/psxtests/psxhdrs/proc04.c1
-rw-r--r--testsuites/psxtests/psxhdrs/proc05.c1
-rw-r--r--testsuites/psxtests/psxhdrs/proc06.c1
-rw-r--r--testsuites/psxtests/psxtime/test.c5
6 files changed, 7 insertions, 4 deletions
diff --git a/testsuites/psxtests/psx08/task1.c b/testsuites/psxtests/psx08/task1.c
index 5668f258d1..e1e37ee67e 100644
--- a/testsuites/psxtests/psx08/task1.c
+++ b/testsuites/psxtests/psx08/task1.c
@@ -25,8 +25,6 @@ void *Task_1(
void *argument
)
{
- int status;
-
puts( "Task_1: exitting" );
return( &Task1_id );
diff --git a/testsuites/psxtests/psxhdrs/proc03.c b/testsuites/psxtests/psxhdrs/proc03.c
index 1ec387a4d5..692e0f7da4 100644
--- a/testsuites/psxtests/psxhdrs/proc03.c
+++ b/testsuites/psxtests/psxhdrs/proc03.c
@@ -12,6 +12,7 @@
* $Id$
*/
+#include <unistd.h>
#include <sys/types.h>
void test( void )
diff --git a/testsuites/psxtests/psxhdrs/proc04.c b/testsuites/psxtests/psxhdrs/proc04.c
index 2d72af7a0e..e1b51e7e6d 100644
--- a/testsuites/psxtests/psxhdrs/proc04.c
+++ b/testsuites/psxtests/psxhdrs/proc04.c
@@ -12,6 +12,7 @@
* $Id$
*/
+#include <unistd.h>
#include <sys/types.h>
void test( void )
diff --git a/testsuites/psxtests/psxhdrs/proc05.c b/testsuites/psxtests/psxhdrs/proc05.c
index 524b6c27a4..a105f20e96 100644
--- a/testsuites/psxtests/psxhdrs/proc05.c
+++ b/testsuites/psxtests/psxhdrs/proc05.c
@@ -12,6 +12,7 @@
* $Id$
*/
+#include <unistd.h>
#include <sys/types.h>
void test( void )
diff --git a/testsuites/psxtests/psxhdrs/proc06.c b/testsuites/psxtests/psxhdrs/proc06.c
index 63db1d0c75..7cbc0ed490 100644
--- a/testsuites/psxtests/psxhdrs/proc06.c
+++ b/testsuites/psxtests/psxhdrs/proc06.c
@@ -12,6 +12,7 @@
* $Id$
*/
+#include <unistd.h>
#include <sys/types.h>
void test( void )
diff --git a/testsuites/psxtests/psxtime/test.c b/testsuites/psxtests/psxtime/test.c
index f62d242fa9..e21eb2da9e 100644
--- a/testsuites/psxtests/psxtime/test.c
+++ b/testsuites/psxtests/psxtime/test.c
@@ -26,7 +26,7 @@
/*
* List of dates and times to test.
*/
-#define NUMBER_OF_DATES 7
+#define NUMBER_OF_DATES 8
rtems_time_of_day Dates[ NUMBER_OF_DATES ] = {
/* YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, TICKS */
{ 1988, 1, 1, 12, 45, 00, 0 },
@@ -67,7 +67,8 @@ void check_a_tod(
/* now do the posix time gets */
result = gettimeofday( &tv, 0 );
assert( result == 0 );
- printf( "gettimeofday: %s", ctime( &tv.tv_sec ) );
+ a_time_t = tv.tv_sec; /* ctime() takes a time_t */
+ printf( "gettimeofday: %s", ctime( &a_time_t) );
a_time_t = time( 0 );
printf( "time: %s", ctime( &a_time_t ) );