summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_init.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-20 16:51:12 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-20 16:51:12 +0000
commit360b2b7ab8fd7cf337f02e260346a0f0ecbb8064 (patch)
tree7e83b806156983fa5af8a32715d849762b8c7346 /nuttx/lib/lib_init.c
parentd913f00d3b4bcbebc12dfa7ea017bacd17464b88 (diff)
downloadpx4-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/lib/lib_init.c')
-rw-r--r--nuttx/lib/lib_init.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/nuttx/lib/lib_init.c b/nuttx/lib/lib_init.c
index dc0643144..0e820ff4c 100644
--- a/nuttx/lib/lib_init.c
+++ b/nuttx/lib/lib_init.c
@@ -57,27 +57,6 @@
* Private Functions
************************************************************/
-#if CONFIG_NFILE_STREAMS > 0
-static void _lib_semtake(FAR struct streamlist *list)
-{
- /* Take the semaphore (perhaps waiting) */
-
- while (sem_wait(&list->sl_sem) != 0)
- {
- /* The only case that an error should occr here is if
- * the wait was awakened by a signal.
- */
-
- ASSERT(*get_errno_ptr() == EINTR);
- }
-}
-
-# define _lib_semgive(list) sem_post(&list->sl_sem)
-#else
-# define _lib_semtake(list)
-# define _lib_semgive(list)
-#endif
-
/************************************************************
* Public Functions
************************************************************/