diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-20 16:51:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-20 16:51:12 +0000 |
commit | 360b2b7ab8fd7cf337f02e260346a0f0ecbb8064 (patch) | |
tree | 7e83b806156983fa5af8a32715d849762b8c7346 /nuttx/sched/sem_post.c | |
parent | d913f00d3b4bcbebc12dfa7ea017bacd17464b88 (diff) | |
download | px4-nuttx-360b2b7ab8fd7cf337f02e260346a0f0ecbb8064.tar.gz px4-nuttx-360b2b7ab8fd7cf337f02e260346a0f0ecbb8064.tar.bz2 px4-nuttx-360b2b7ab8fd7cf337f02e260346a0f0ecbb8064.zip |
Restructure header files for POSIX compliance; eliminate compile warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@107 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sem_post.c')
-rw-r--r-- | nuttx/sched/sem_post.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/sched/sem_post.c b/nuttx/sched/sem_post.c index 857b20def..2a6af5e21 100644 --- a/nuttx/sched/sem_post.c +++ b/nuttx/sched/sem_post.c @@ -38,6 +38,7 @@ ************************************************************/ #include <sys/types.h> +#include <limits.h> #include <semaphore.h> #include <sched.h> #include <nuttx/arch.h> @@ -123,7 +124,7 @@ int sem_post(sem_t *sem) /* Perform the semaphore unlock operation. */ - ASSERT(sem->semcount < SEM_MAX_VALUE); + ASSERT(sem->semcount < SEM_VALUE_MAX); sem->semcount++; /* If the result of of semaphore unlock is non-positive, then |