diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-28 00:05:58 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-28 00:05:58 +0000 |
commit | 931bd2b8661c8ed4c923220490cbebc56d6c0065 (patch) | |
tree | 744ba3d223b0b158d74f077328ca226a19407d28 /nuttx/fs/fs_rewinddir.c | |
parent | a67921192b48c4b0dcc5ac34d180c710ec6ea5d3 (diff) | |
download | nuttx-931bd2b8661c8ed4c923220490cbebc56d6c0065.tar.gz nuttx-931bd2b8661c8ed4c923220490cbebc56d6c0065.tar.bz2 nuttx-931bd2b8661c8ed4c923220490cbebc56d6c0065.zip |
Re-organize header files so that file systems can be built outside of the nuttx tree; add a binfs file system to apps/namedapp
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3428 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_rewinddir.c')
-rw-r--r-- | nuttx/fs/fs_rewinddir.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/fs/fs_rewinddir.c b/nuttx/fs/fs_rewinddir.c index 171f26399..a53da7725 100644 --- a/nuttx/fs/fs_rewinddir.c +++ b/nuttx/fs/fs_rewinddir.c @@ -1,7 +1,7 @@ /**************************************************************************** * fs/fs_rewinddir.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 @@ -41,7 +41,9 @@ #include <dirent.h> #include <errno.h> + #include <nuttx/fs.h> +#include <nuttx/dirent.h> #include "fs_internal.h" @@ -53,7 +55,7 @@ * Name: rewindpsuedodir ****************************************************************************/ -static inline void rewindpsuedodir(struct internal_dir_s *idir) +static inline void rewindpsuedodir(struct fs_dirent_s *idir) { struct inode *prev; @@ -102,7 +104,7 @@ static inline void rewindpsuedodir(struct internal_dir_s *idir) void rewinddir(FAR DIR *dirp) { - struct internal_dir_s *idir = (struct internal_dir_s *)dirp; + struct fs_dirent_s *idir = (struct fs_dirent_s *)dirp; #ifndef CONFIG_DISABLE_MOUNTPOINT struct inode *inode; #endif |