diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-02 15:36:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-02 15:36:19 +0000 |
commit | 5ebf11ee63f1baaf070fd8484d99362810cd5bcc (patch) | |
tree | 2068f6956ceee5aba740da5acb8f97858e2b3f8a /nuttx/fs/fs_fcntl.c | |
parent | addae64d8c028ffd2c3bb05ec7ebdd1a73720998 (diff) | |
download | px4-nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.tar.gz px4-nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.tar.bz2 px4-nuttx-5ebf11ee63f1baaf070fd8484d99362810cd5bcc.zip |
Fix some warnings and fix some simulator builds
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4688 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_fcntl.c')
-rw-r--r-- | nuttx/fs/fs_fcntl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_fcntl.c b/nuttx/fs/fs_fcntl.c index f0102ce8e..b7e688895 100644 --- a/nuttx/fs/fs_fcntl.c +++ b/nuttx/fs/fs_fcntl.c @@ -59,7 +59,7 @@ static inline int file_vfcntl(int fildes, int cmd, va_list ap) FAR struct filelist *list; FAR struct file *this_file; int err = 0; - int ret = 0; + int ret = OK; /* Get the thread-specific file list */ @@ -202,7 +202,7 @@ errout: errno = err; return ERROR; } - return OK; + return ret; } #endif /* CONFIG_NFILE_DESCRIPTORS > 0 */ |