summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx06
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/psx06
parentRemove stray white spaces. (diff)
downloadrtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'testsuites/psxtests/psx06')
-rw-r--r--testsuites/psxtests/psx06/init.c4
-rw-r--r--testsuites/psxtests/psx06/task.c4
-rw-r--r--testsuites/psxtests/psx06/task2.c10
3 files changed, 9 insertions, 9 deletions
diff --git a/testsuites/psxtests/psx06/init.c b/testsuites/psxtests/psx06/init.c
index 290d54fbb0..863d8baefc 100644
--- a/testsuites/psxtests/psx06/init.c
+++ b/testsuites/psxtests/psx06/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -46,7 +46,7 @@ void *POSIX_Init(
Init_id = pthread_self();
printf( "Init's ID is 0x%08x\n", Init_id );
-
+
/* create a couple of threads */
status = pthread_create( &Task_id, NULL, Task_1, NULL );
diff --git a/testsuites/psxtests/psx06/task.c b/testsuites/psxtests/psx06/task.c
index 0fab530f5b..8284ed6119 100644
--- a/testsuites/psxtests/psx06/task.c
+++ b/testsuites/psxtests/psx06/task.c
@@ -26,14 +26,14 @@ void *Task_1(
)
{
int status;
- uint32_t *key_data;
+ uint32_t *key_data;
printf( "Task_1: Setting the key to %d\n", 1 );
status = pthread_setspecific( Key_id, &Data_array[ 1 ] );
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
key_data = pthread_getspecific( Key_id );
printf( "Task_1: Got the key value of %ld\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
diff --git a/testsuites/psxtests/psx06/task2.c b/testsuites/psxtests/psx06/task2.c
index 497b592f2c..e894e40a1d 100644
--- a/testsuites/psxtests/psx06/task2.c
+++ b/testsuites/psxtests/psx06/task2.c
@@ -26,7 +26,7 @@ void *Task_2(
{
int status;
uint32_t *key_data;
-
+
printf( "Destructor invoked %d times\n", Destructor_invoked );
printf( "Task_2: Setting the key to %d\n", 2 );
@@ -34,18 +34,18 @@ void *Task_2(
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
key_data = pthread_getspecific( Key_id );
printf( "Task_2: Got the key value of %ld\n",
(unsigned long) ((uint32_t *)key_data - Data_array) );
if ( status )
printf( "status = %d\n", status );
assert( !status );
-
+
puts( "Task2: exitting" );
pthread_exit( NULL );
-
+
/* switch to init task */
-
+
return NULL; /* just so the compiler thinks we returned something */
}