more dirent usage. nix.

SVN revision: 54019
This commit is contained in:
Carsten Haitzler 2010-10-30 06:22:14 +00:00
parent 661ef90a8e
commit baf0b67a9d
1 changed files with 2 additions and 10 deletions

View File

@ -440,17 +440,9 @@ _elm_config_profiles_list(void)
if (info->name_length >= len)
continue;
switch (info->dirent->d_type)
switch (info->type)
{
case DT_UNKNOWN:
if (stat(info->path, &buffer) != 0)
goto it_free;
if (S_ISDIR(buffer.st_mode))
S_ISDIR_CASE_DO
break;
case DT_DIR:
case EINA_FILE_DIR:
S_ISDIR_CASE_DO
break;