diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-16 01:04:17 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-04-16 01:04:17 +0000 |
commit | 4264cfb4e8ab918f350dc625019b8492cc8d9e40 (patch) | |
tree | f6c80ca59449872801c0050b6cdb5bf3ed27299b /nuttx/fs/fs_filedup.c | |
parent | f59a457ba7da70e76fdba829f1b17764dbc1d486 (diff) | |
download | px4-nuttx-4264cfb4e8ab918f350dc625019b8492cc8d9e40.tar.gz px4-nuttx-4264cfb4e8ab918f350dc625019b8492cc8d9e40.tar.bz2 px4-nuttx-4264cfb4e8ab918f350dc625019b8492cc8d9e40.zip |
Fix bad conditional compilation that breaks THTTPD and dup2()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3511 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_filedup.c')
-rw-r--r-- | nuttx/fs/fs_filedup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/fs/fs_filedup.c b/nuttx/fs/fs_filedup.c index 60dd9720a..84431b9b1 100644 --- a/nuttx/fs/fs_filedup.c +++ b/nuttx/fs/fs_filedup.c @@ -1,7 +1,7 @@ /**************************************************************************** * fs/fs_filedup.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -43,6 +43,7 @@ #include <errno.h> #include <nuttx/fs.h> + #include "fs_internal.h" #if CONFIG_NFILE_DESCRIPTORS > 0 @@ -109,7 +110,7 @@ int file_dup(int fildes, int minfd) if (fildes2 < 0) { errno = EMFILE; - inode_release(list->fl_files[fildes].f_inode); + inode_release(list->fl_files[fildes].f_inode); return ERROR; } return fildes2; |