diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-04-16 01:04:17 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2011-04-16 01:04:17 +0000 |
commit | 923993eba7eac5f20b2b588bad0178b3983697c5 (patch) | |
tree | f6c80ca59449872801c0050b6cdb5bf3ed27299b /nuttx/fs/fs_filedup.c | |
parent | 057b3fd3529faa9cdca03a7d9d88aa7faeba3e57 (diff) |
Fix bad conditional compilation that breaks THTTPD and dup2()
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3511 7fd9a85b-ad96-42d3-883c-3090e2eb8679
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 60dd9720a9..84431b9b16 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; |