summaryrefslogtreecommitdiff
path: root/examples/file
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-07-03 23:16:59 +0000
committer[email protected] <[email protected]>2011-07-03 23:16:59 +0000
commit6b6cecac2f68031201b9a375006f1ba4091f5da3 (patch)
tree925b8fc54d7152614df6d6ef434db6bc768405e0 /examples/file
parent82e62b69ceafb99aee550e6f98991fd30575746c (diff)
fix compiling error.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1591 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/file')
-rw-r--r--examples/file/listdir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/file/listdir.c b/examples/file/listdir.c
index 76cf2f2e26..c2065e4013 100644
--- a/examples/file/listdir.c
+++ b/examples/file/listdir.c
@@ -22,14 +22,14 @@ void list_dir(const char* path)
dir = opendir(path);
if (dir != RT_NULL)
{
- struct dfs_dirent* dirent;
- struct dfs_stat s;
+ struct dirent* dirent;
+ struct stat s;
do
{
dirent = readdir(dir);
if (dirent == RT_NULL) break;
- rt_memset(&s, 0, sizeof(struct dfs_stat));
+ rt_memset(&s, 0, sizeof(struct stat));
/* build full path for each file */
rt_sprintf(fullpath, "/%s", dirent->d_name);