diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-31 23:52:53 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-12-31 23:52:53 +0000 |
commit | 768b31742994a7270a11f6b0393329b3404b2af0 (patch) | |
tree | 07225e24cd679bcd042f722dc39514fa90ba541c /nuttx/fs/fs_opendir.c | |
parent | e56f12fd3dbddb72e0a3996a1247d27bad227cd5 (diff) | |
download | px4-nuttx-768b31742994a7270a11f6b0393329b3404b2af0.tar.gz px4-nuttx-768b31742994a7270a11f6b0393329b3404b2af0.tar.bz2 px4-nuttx-768b31742994a7270a11f6b0393329b3404b2af0.zip |
Debug NSH on z80sim
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@474 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_opendir.c')
-rw-r--r-- | nuttx/fs/fs_opendir.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/nuttx/fs/fs_opendir.c b/nuttx/fs/fs_opendir.c index 3d174a640..2de8107d7 100644 --- a/nuttx/fs/fs_opendir.c +++ b/nuttx/fs/fs_opendir.c @@ -1,7 +1,7 @@ -/************************************************************ - * fs_opendir.c +/**************************************************************************** + * fs/fs_opendir.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> #include <sys/types.h> @@ -46,15 +46,15 @@ #include <nuttx/fs.h> #include "fs_internal.h" -/************************************************************ +/**************************************************************************** * Private Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Public Functions - ************************************************************/ + ****************************************************************************/ -/************************************************************ +/**************************************************************************** * Name: opendir * * Description: @@ -80,13 +80,13 @@ * ENOMEM - Insufficient memory to complete the operation. * ENOTDIR - 'path' is not a directory. * - ************************************************************/ + ****************************************************************************/ -FAR DIR *opendir(const char *path) +FAR DIR *opendir(FAR const char *path) { FAR struct inode *inode = NULL; FAR struct internal_dir_s *dir; - const char *relpath; + FAR const char *relpath; boolean isroot = FALSE; int ret; @@ -112,7 +112,7 @@ FAR DIR *opendir(const char *path) /* Find the node matching the path. */ - inode = inode_search(&path, (FAR void*)NULL, (FAR void*)NULL, &relpath); + inode = inode_search(&path, (FAR struct inode**)NULL, (FAR struct inode**)NULL, &relpath); } /* Did we get an inode? */ |