summaryrefslogtreecommitdiff
path: root/nuttx/sched
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-19 16:38:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-19 16:38:47 +0000
commit08bfe18bbac5abdfeec85d11897872f8d6304986 (patch)
treed785bdc41a5cd7d68db2cdc3777efc1e8304ddcc /nuttx/sched
parent1e60d6c9e0521284f6386c4fbc66f1cc799f2ed9 (diff)
downloadpx4-nuttx-08bfe18bbac5abdfeec85d11897872f8d6304986.tar.gz
px4-nuttx-08bfe18bbac5abdfeec85d11897872f8d6304986.tar.bz2
px4-nuttx-08bfe18bbac5abdfeec85d11897872f8d6304986.zip
Cosmetic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@96 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r--nuttx/sched/sem_wait.c8
-rw-r--r--nuttx/sched/sig_received.c2
2 files changed, 8 insertions, 2 deletions
diff --git a/nuttx/sched/sem_wait.c b/nuttx/sched/sem_wait.c
index 8734dc1f7..cbf8fd019 100644
--- a/nuttx/sched/sem_wait.c
+++ b/nuttx/sched/sem_wait.c
@@ -164,9 +164,13 @@ int sem_wait(sem_t *sem)
*/
if (*get_errno_ptr() != EINTR)
- ret = OK;
+ {
+ ret = OK;
+ }
else
- sem->semcount++;
+ {
+ sem->semcount++;
+ }
}
/* Interrupts may now be enabled. */
diff --git a/nuttx/sched/sig_received.c b/nuttx/sched/sig_received.c
index 9df9e797c..7a5e2e749 100644
--- a/nuttx/sched/sig_received.c
+++ b/nuttx/sched/sig_received.c
@@ -296,6 +296,7 @@ int sig_received(FAR _TCB *stcb, siginfo_t *info)
ret = OK;
/****** MASKED SIGNAL HANDLING ******/
+
/* Check if the signal is masked -- if it is, it will be added to the
* list of pending signals.
*/
@@ -365,6 +366,7 @@ int sig_received(FAR _TCB *stcb, siginfo_t *info)
}
/****** OTHER SIGNAL HANDLING ******/
+
/* If the task is blocked waiting for a semaphore, then that
* task must be unblocked when a signal is received.
*/