提交 6b6cecac 编写于 作者: B bernard.xiong@gmail.com

fix compiling error.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1591 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 82e62b69
...@@ -22,14 +22,14 @@ void list_dir(const char* path) ...@@ -22,14 +22,14 @@ void list_dir(const char* path)
dir = opendir(path); dir = opendir(path);
if (dir != RT_NULL) if (dir != RT_NULL)
{ {
struct dfs_dirent* dirent; struct dirent* dirent;
struct dfs_stat s; struct stat s;
do do
{ {
dirent = readdir(dir); dirent = readdir(dir);
if (dirent == RT_NULL) break; 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 */ /* build full path for each file */
rt_sprintf(fullpath, "/%s", dirent->d_name); rt_sprintf(fullpath, "/%s", dirent->d_name);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册