summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxtimer
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
commit1b4f2b305c95a832a259e4c4944f1a0981676eba (patch)
tree1ee56809b12a03ba53d630f5483a48387f72b74a /testsuites/psxtests/psxtimer
parentRemove stray white spaces. (diff)
downloadrtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'testsuites/psxtests/psxtimer')
-rw-r--r--testsuites/psxtests/psxtimer/psxtimer.c16
-rw-r--r--testsuites/psxtests/psxtimer/system.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/testsuites/psxtests/psxtimer/psxtimer.c b/testsuites/psxtests/psxtimer/psxtimer.c
index fcacb10d75..ac4a7b9de1 100644
--- a/testsuites/psxtests/psxtimer/psxtimer.c
+++ b/testsuites/psxtests/psxtimer/psxtimer.c
@@ -36,7 +36,7 @@ struct periodic_params {
struct timespec period;
int signo; /* signal number */
int id; /* task identification */
- };
+ };
pthread_attr_t attr;
@@ -201,7 +201,7 @@ void * task_c (void *arg)
if (sigwait(&set,&received_sig) == -1) {
perror ("Error in sigwait\n");
pthread_exit ((void *) -1);
- }
+ }
pthread_mutex_lock (&data.mutex);
while (data.updated == FALSE) {
pthread_cond_wait (&data.sync,&data.mutex);
@@ -227,10 +227,10 @@ void *POSIX_Init (
pthread_attr_t attr; /* task attributes */
pthread_t ta,tb,tc; /* threads */
sigset_t set; /* signals */
-
+
struct sched_param sch_param; /* schedule parameters */
struct periodic_params params_a, params_b, params_c;
-
+
puts( "\n\n*** POSIX Timers Test ***" );
data.updated = FALSE;
@@ -282,7 +282,7 @@ void *POSIX_Init (
priority) */
if (pthread_attr_setschedpolicy (&attr,
SCHED_FIFO) != 0) {
- perror ("Error in attribute setschedpolicy\n");
+ perror ("Error in attribute setschedpolicy\n");
}
/* set and create thread A with priority 1 */
@@ -291,7 +291,7 @@ void *POSIX_Init (
if (pthread_attr_setschedparam(&attr, &sch_param) != 0) {
perror ("Error in attribute schedparam\n");
}
-
+
/* Temporal parameters (1 sec. periodicity) */
params_a.period.tv_sec = 1; /* seconds */
@@ -302,12 +302,12 @@ void *POSIX_Init (
}
/* set and create thread B with priority 15 */
-
+
sch_param.sched_priority = 15;
if (pthread_attr_setschedparam(&attr, &sch_param) != 0) {
perror ("Error in attribute schedparam");
}
-
+
/* Temporal parameters (2 sec. periodicity) */
params_b.period.tv_sec = 2; /* seconds */
params_b.period.tv_nsec = 000000000; /* nanoseconds */
diff --git a/testsuites/psxtests/psxtimer/system.h b/testsuites/psxtests/psxtimer/system.h
index c62d3e17ff..2b471f5b32 100644
--- a/testsuites/psxtests/psxtimer/system.h
+++ b/testsuites/psxtests/psxtimer/system.h
@@ -41,7 +41,7 @@ void *task_c(
#define CONFIGURE_POSIX_INIT_THREAD_TABLE
-#define CONFIGURE_MAXIMUM_POSIX_THREADS 4
+#define CONFIGURE_MAXIMUM_POSIX_THREADS 4
#define CONFIGURE_MAXIMUM_POSIX_TIMERS 4
#define CONFIGURE_MAXIMUM_TIMERS 4
#define CONFIGURE_MAXIMUM_POSIX_MUTEXES 2