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_opendir.c | |
parent | a67921192b48c4b0dcc5ac34d180c710ec6ea5d3 (diff) | |
download | px4-nuttx-931bd2b8661c8ed4c923220490cbebc56d6c0065.tar.gz px4-nuttx-931bd2b8661c8ed4c923220490cbebc56d6c0065.tar.bz2 px4-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_opendir.c')
-rw-r--r-- | nuttx/fs/fs_opendir.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nuttx/fs/fs_opendir.c b/nuttx/fs/fs_opendir.c index 3abdc1b3d..8f287c050 100644 --- a/nuttx/fs/fs_opendir.c +++ b/nuttx/fs/fs_opendir.c @@ -1,7 +1,7 @@ /**************************************************************************** * fs/fs_opendir.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 @@ -47,6 +47,7 @@ #include <errno.h> #include <nuttx/fs.h> +#include <nuttx/dirent.h> #include "fs_internal.h" @@ -89,7 +90,7 @@ FAR DIR *opendir(FAR const char *path) { FAR struct inode *inode = NULL; - FAR struct internal_dir_s *dir; + FAR struct fs_dirent_s *dir; FAR const char *relpath; bool isroot = false; int ret; @@ -133,7 +134,7 @@ FAR DIR *opendir(FAR const char *path) * container. */ - dir = (FAR struct internal_dir_s *)zalloc(sizeof(struct internal_dir_s)); + dir = (FAR struct fs_dirent_s *)zalloc(sizeof(struct fs_dirent_s)); if (!dir) { /* Insufficient memory to complete the operation.*/ |