Răsfoiți Sursa

fix compiling error.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1591 bbd45198-f89e-11dd-88c7-29a3b14d5316
bernard.xiong@gmail.com 14 ani în urmă
părinte
comite
6b6cecac2f
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 3 3
      examples/file/listdir.c

+ 3 - 3
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);