summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-06 19:16:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-06-06 19:16:20 +0000
commit0a359a7af55effb59bbf4febb3d3fb37907d0a9d (patch)
tree129129e747d760bef98ec321f0af5ff16ce86456 /testsuites/psxtests/psx01
parentRemoved assert's from routines which return the error ENOSYS. (diff)
downloadrtems-0a359a7af55effb59bbf4febb3d3fb37907d0a9d.tar.bz2
added include of <sched.h> and fixed warnings
Diffstat (limited to 'testsuites/psxtests/psx01')
-rw-r--r--testsuites/psxtests/psx01/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtests/psx01/init.c b/testsuites/psxtests/psx01/init.c
index a7c5bf69bd..2d69a3786a 100644
--- a/testsuites/psxtests/psx01/init.c
+++ b/testsuites/psxtests/psx01/init.c
@@ -12,6 +12,7 @@
#define CONFIGURE_INIT
#include "system.h"
+#include <sched.h>
#define TM_SUNDAY 0
#define TM_MONDAY 1
@@ -136,8 +137,8 @@ void *POSIX_Init(
status = sched_rr_get_interval( getpid(), &tr );
printf(
"Round Robin quantum is %d seconds, %d nanoseconds\n",
- tr.tv_sec,
- tr.tv_nsec
+ (int) tr.tv_sec,
+ (int) tr.tv_nsec
);
assert( !status );