summaryrefslogtreecommitdiff
path: root/apps/examples/ostest
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-04-13 16:24:28 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-04-13 16:24:28 -0600
commit43ec94a665e13552402ff4f102e0f65f6792cf29 (patch)
tree05da26d1bb5e364c1a388afd54630d5ae3ca4aa7 /apps/examples/ostest
parent70b6bb22af51defd713adfd452309f32f0e523aa (diff)
downloadnuttx-43ec94a665e13552402ff4f102e0f65f6792cf29.tar.gz
nuttx-43ec94a665e13552402ff4f102e0f65f6792cf29.tar.bz2
nuttx-43ec94a665e13552402ff4f102e0f65f6792cf29.zip
More trailing whilespace removal
Diffstat (limited to 'apps/examples/ostest')
-rw-r--r--apps/examples/ostest/Makefile6
-rw-r--r--apps/examples/ostest/fpu.c2
-rw-r--r--apps/examples/ostest/ostest_main.c2
-rw-r--r--apps/examples/ostest/prioinherit.c10
-rw-r--r--apps/examples/ostest/rmutex.c4
-rw-r--r--apps/examples/ostest/sem.c2
6 files changed, 13 insertions, 13 deletions
diff --git a/apps/examples/ostest/Makefile b/apps/examples/ostest/Makefile
index e8b6a176d..d0f347dfb 100644
--- a/apps/examples/ostest/Makefile
+++ b/apps/examples/ostest/Makefile
@@ -77,9 +77,9 @@ endif # CONFIG_DISABLE_SIGNALS
ifneq ($(CONFIG_DISABLE_MQUEUE),y)
ifneq ($(CONFIG_DISABLE_PTHREAD),y)
-CSRCS += mqueue.c
+CSRCS += mqueue.c
ifneq ($(CONFIG_DISABLE_CLOCK),y)
-CSRCS += timedmqueue.c
+CSRCS += timedmqueue.c
endif # CONFIG_DISABLE_CLOCK
endif # CONFIG_DISABLE_PTHREAD
endif # CONFIG_DISABLE_MQUEUE
@@ -122,7 +122,7 @@ ROOTDEPPATH = --dep-path .
# Common build
-VPATH =
+VPATH =
all: .built
.PHONY: clean depend distclean
diff --git a/apps/examples/ostest/fpu.c b/apps/examples/ostest/fpu.c
index 89a1034ce..2729348ed 100644
--- a/apps/examples/ostest/fpu.c
+++ b/apps/examples/ostest/fpu.c
@@ -215,7 +215,7 @@ static int fpu_task(int argc, char *argv[])
printf("FPU#%d: pass %d\n", id, i+1);
fflush(stdout);
- /* Set the FPU register save arrays to a known-but-illogical values so
+ /* Set the FPU register save arrays to a known-but-illogical values so
* that we can verify that reading of the registers actually occurs.
*/
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index 630262d0e..8591c5f3f 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -306,7 +306,7 @@ static int user_main(int argc, char *argv[])
#endif
/* Top of test loop */
-
+
#if CONFIG_EXAMPLES_OSTEST_LOOPS > 1
for (i = 0; i < CONFIG_EXAMPLES_OSTEST_LOOPS; i++)
#elif CONFIG_EXAMPLES_OSTEST_LOOPS == 0
diff --git a/apps/examples/ostest/prioinherit.c b/apps/examples/ostest/prioinherit.c
index cd04df7e6..5d0c9b763 100644
--- a/apps/examples/ostest/prioinherit.c
+++ b/apps/examples/ostest/prioinherit.c
@@ -115,7 +115,7 @@ static int nhighpri_waiting(void)
{
int n = 0;
int i;
-
+
for (i = 0; i < NHIGHPRI_THREADS; i++)
{
if (g_highstate[i] == WAITING)
@@ -134,7 +134,7 @@ static int nhighpri_running(void)
{
int n = 0;
int i;
-
+
for (i = 0; i < NHIGHPRI_THREADS; i++)
{
if (g_highstate[i] != DONE)
@@ -268,7 +268,7 @@ static void *lowpri_thread(void *parameter)
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);
- }
+ }
}
g_lowstate[threadno-1] = WAITING;
@@ -378,14 +378,14 @@ static void *lowpri_thread(void *parameter)
if (sparam.sched_priority != g_lowpri)
{
printf(" ERROR should have been %d\n", g_lowpri);
- }
+ }
}
sem_enumholders(&g_sem);
printf("lowpri_thread-%d: Okay... I'm done!\n", threadno);
FFLUSH();
g_lowstate[threadno-1] = DONE;
- return retval;
+ return retval;
}
#endif /* CONFIG_PRIORITY_INHERITANCE && !CONFIG_DISABLE_SIGNALS && !CONFIG_DISABLE_PTHREAD */
diff --git a/apps/examples/ostest/rmutex.c b/apps/examples/ostest/rmutex.c
index ffd99c2df..5456cddb7 100644
--- a/apps/examples/ostest/rmutex.c
+++ b/apps/examples/ostest/rmutex.c
@@ -64,7 +64,7 @@ static void thread_inner(int id, int level)
printf("thread_inner[%d, %d]: Locked\n", id, level);
/* Give the other threads a chance */
-
+
pthread_yield();
thread_inner(id, level+1);
pthread_yield();
@@ -127,7 +127,7 @@ void recursive_mutex_test(void)
{
printf("recursive_mutex_test: ERROR pthread_mutexattr_gettype return type=%d\n", type);
}
-
+
/* Initialize the mutex */
printf("recursive_mutex_test: Initializing mutex\n");
diff --git a/apps/examples/ostest/sem.c b/apps/examples/ostest/sem.c
index 6f979dcc7..5c7f39cce 100644
--- a/apps/examples/ostest/sem.c
+++ b/apps/examples/ostest/sem.c
@@ -235,7 +235,7 @@ void sem_test(void)
printf(" Canceling waiter threads\n");
pthread_cancel(waiter_thread1);
- pthread_cancel(waiter_thread2);
+ pthread_cancel(waiter_thread2);
}
#ifdef SDCC