more dirent usage. nix.
authorCarsten Haitzler <raster@rasterman.com>
Sat, 30 Oct 2010 06:22:14 +0000 (06:22 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sat, 30 Oct 2010 06:22:14 +0000 (06:22 +0000)
SVN revision: 54019

src/lib/elm_config.c

index 1f3c9de..7b607a7 100644 (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;