diff options
| author | bernard.xiong <[email protected]> | 2010-10-19 08:19:07 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-10-19 08:19:07 +0000 |
| commit | e7fb6e7be2e578635e59232643680ba815a088f5 (patch) | |
| tree | 5929fe9f433d5083bbdb3397643a19fba7c878f9 /components | |
| parent | b4a98e4457c3a58301b41db5db50bfbca4546255 (diff) | |
Improve the Device File System of the POSIX compatibility
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1016 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/rtgui/widgets/filelist_view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/rtgui/widgets/filelist_view.c b/components/rtgui/widgets/filelist_view.c index 53e04d227c..a37a122e36 100644 --- a/components/rtgui/widgets/filelist_view.c +++ b/components/rtgui/widgets/filelist_view.c @@ -730,7 +730,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char* if (directory != RT_NULL)
{
DIR* dir;
- struct _stat s;
+ struct stat s;
rt_uint32_t index;
struct dirent* dirent;
@@ -793,7 +793,7 @@ void rtgui_filelist_view_set_directory(rtgui_filelist_view_t* view, const char* item = &(view->items[index]);
item->name = rt_strdup(dirent->d_name);
- rt_memset(&s, 0, sizeof(struct _stat));
+ rt_memset(&s, 0, sizeof(struct stat));
/* build full path for the file */
if (directory[strlen(directory) - 1] != PATH_SEPARATOR)
|
