summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxtime
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/psxtime
parentRemoved warning. (diff)
downloadrtems-bfded728ec4c912f666df94867c118a1004b0165.tar.bz2
Fixed warnings.
Diffstat (limited to 'testsuites/psxtests/psxtime')
-rw-r--r--testsuites/psxtests/psxtime/test.c5
1 files changed, 3 insertions, 2 deletions
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 ) );