diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-26 16:47:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-26 16:47:17 +0000 |
commit | 899c7204851d44de519804af8a75e0b459012e9f (patch) | |
tree | 449ad4c5decd48591605264d1a881a4b81b9bdce /nuttx/lib/lib_sem.c | |
parent | 3a5002af1855fbc7989ea994301abaa420be6db3 (diff) | |
download | px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.tar.gz px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.tar.bz2 px4-nuttx-899c7204851d44de519804af8a75e0b459012e9f.zip |
Create a place to hold board specific header files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@146 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_sem.c')
-rw-r--r-- | nuttx/lib/lib_sem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/lib/lib_sem.c b/nuttx/lib/lib_sem.c index 9c105dfca..604313d3d 100644 --- a/nuttx/lib/lib_sem.c +++ b/nuttx/lib/lib_sem.c @@ -104,9 +104,9 @@ void lib_take_semaphore(FILE *stream) ASSERT(*get_errno_ptr() == EINTR); } - /* We have it. Claim the stak and return */ + /* We have it. Stake the claim and return */ - stream->holder = my_pid; + stream->holder = my_pid; stream->counts = 1; } } @@ -119,7 +119,7 @@ void lib_give_semaphore(FILE *stream) { pid_t my_pid = getpid(); - /* I better be holding at least one reference to the semaphore */ + /* I better be holding at least one count on the semaphore */ ASSERT(stream->holder == my_pid); |