diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-09 00:04:03 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-05-09 00:04:03 +0000 |
commit | 039a51bde4bc3f21fe68c3f4cff966fde2532faa (patch) | |
tree | ec9942ae9a79d9a6b7315fd02f8b14d27ce95a27 /nuttx/fs/fs_readdir.c | |
parent | 0350e28418647956e6fecc5f6a096fb435cf47f4 (diff) | |
download | px4-nuttx-039a51bde4bc3f21fe68c3f4cff966fde2532faa.tar.gz px4-nuttx-039a51bde4bc3f21fe68c3f4cff966fde2532faa.tar.bz2 px4-nuttx-039a51bde4bc3f21fe68c3f4cff966fde2532faa.zip |
Add support for block drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@206 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_readdir.c')
-rw-r--r-- | nuttx/fs/fs_readdir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/fs_readdir.c b/nuttx/fs/fs_readdir.c index 034770c80..54a880328 100644 --- a/nuttx/fs/fs_readdir.c +++ b/nuttx/fs/fs_readdir.c @@ -104,7 +104,7 @@ FAR struct dirent *readdir(DIR *dirp) */ idir->dir.d_type = 0; - if (idir->next->i_ops) + if (idir->next->u.i_ops) { idir->dir.d_type |= DTYPE_FILE; } @@ -113,7 +113,7 @@ FAR struct dirent *readdir(DIR *dirp) * is a directory. NOTE: that the node can be both! */ - if (idir->next->i_child || !idir->next->i_ops) + if (idir->next->i_child || !idir->next->u.i_ops) { idir->dir.d_type |= DTYPE_DIRECTORY; } |