summaryrefslogtreecommitdiff
path: root/nuttx/sched/sched_releasefiles.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-07-31 00:28:24 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-07-31 00:28:24 +0000
commitad910059a7501d0f9f7b5f722258cb902c64eb15 (patch)
tree522105d53d29cdc3a37a6b75977830bd7c1faa83 /nuttx/sched/sched_releasefiles.c
parentd5b792fdafc619122a2e5cae2e5918cc451ff84a (diff)
downloadpx4-nuttx-ad910059a7501d0f9f7b5f722258cb902c64eb15.tar.gz
px4-nuttx-ad910059a7501d0f9f7b5f722258cb902c64eb15.tar.bz2
px4-nuttx-ad910059a7501d0f9f7b5f722258cb902c64eb15.zip
Fix bug: Using unsigned to detect errno<0
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@791 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/sched_releasefiles.c')
-rw-r--r--nuttx/sched/sched_releasefiles.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/nuttx/sched/sched_releasefiles.c b/nuttx/sched/sched_releasefiles.c
index 9edf8ecd9..160b0fb42 100644
--- a/nuttx/sched/sched_releasefiles.c
+++ b/nuttx/sched/sched_releasefiles.c
@@ -1,7 +1,7 @@
-/************************************************************
- * sched_releasefiles.c
+/****************************************************************************
+ * sched/sched_releasefiles.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h>
@@ -46,15 +46,15 @@
#if CONFIG_NFILE_DESCRIPTORS > 0 || CONFIG_NSOCKET_DESCRIPTORS > 0
-/************************************************************
+/****************************************************************************
* Private Functions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Function: sched_releasefiles
*
* Description:
@@ -68,7 +68,7 @@
*
* Assumptions:
*
- ************************************************************/
+ ****************************************************************************/
int sched_releasefiles(_TCB *tcb)
{