summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2005-12-29 14:51:25 +0000
committerChristopher Michael <cpmichael1@comcast.net>2005-12-29 14:51:25 +0000
commitaeb360012f7c71d4defb6d90f1dd76ea6483908f (patch)
treefb4c215d303027e1f87494431caae544f12ae9b0
parent325b5e826fefce1b565f408cfcf15c3a03071798 (diff)
Many compiler warning clean-ups
SVN revision: 19372
-rw-r--r--src/bin/e_fileman_smart.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/bin/e_fileman_smart.c b/src/bin/e_fileman_smart.c
index f831190f1..a0b672cf3 100644
--- a/src/bin/e_fileman_smart.c
+++ b/src/bin/e_fileman_smart.c
@@ -615,7 +615,6 @@ e_fm_icon_destroy(Evas_Object *obj, void *data)
615static void 615static void
616_e_fm_smart_add(Evas_Object *object) 616_e_fm_smart_add(Evas_Object *object)
617{ 617{
618 char dir[PATH_MAX];
619 E_Fm_Smart_Data *sd; 618 E_Fm_Smart_Data *sd;
620 619
621 sd = E_NEW(E_Fm_Smart_Data, 1); 620 sd = E_NEW(E_Fm_Smart_Data, 1);
@@ -1455,15 +1454,12 @@ _e_fm_menu_refresh_cb(void *data, E_Menu *m, E_Menu_Item *mi)
1455static void 1454static void
1456_e_fm_dir_set(E_Fm_Smart_Data *sd, const char *dir) 1455_e_fm_dir_set(E_Fm_Smart_Data *sd, const char *dir)
1457{ 1456{
1458 Evas_List *l;
1459 Evas_List *list; 1457 Evas_List *list;
1460 Ecore_Sheap *heap; 1458 Ecore_Sheap *heap;
1461 char *f; 1459 char *f;
1462 int type; 1460 int type;
1463 DIR *dir2; 1461 DIR *dir2;
1464 struct dirent *dp; 1462 struct dirent *dp;
1465 E_Event_Fm_Reconfigure *ev;
1466 E_Event_Fm_Directory_Change *ev2;
1467 1463
1468 if (!dir) return; 1464 if (!dir) return;
1469 if ((sd->dir) && (!strcmp(sd->dir, dir))) return; 1465 if ((sd->dir) && (!strcmp(sd->dir, dir))) return;
@@ -1472,7 +1468,7 @@ _e_fm_dir_set(E_Fm_Smart_Data *sd, const char *dir)
1472 1468
1473 type = E_FM_FILE_TYPE_NORMAL; 1469 type = E_FM_FILE_TYPE_NORMAL;
1474 list = NULL; 1470 list = NULL;
1475 while(dp = readdir(dir2)) 1471 while((dp = readdir(dir2)))
1476 { 1472 {
1477 if ((!strcmp(dp->d_name, ".") || (!strcmp (dp->d_name, "..")))) continue; 1473 if ((!strcmp(dp->d_name, ".") || (!strcmp (dp->d_name, "..")))) continue;
1478 if ((dp->d_name[0] == '.') && (!(type & E_FM_FILE_TYPE_HIDDEN))) continue; 1474 if ((dp->d_name[0] == '.') && (!(type & E_FM_FILE_TYPE_HIDDEN))) continue;
@@ -1570,12 +1566,9 @@ static int
1570_e_fm_dir_files_get(void *data) 1566_e_fm_dir_files_get(void *data)
1571{ 1567{
1572 E_Fm_Smart_Data *sd; 1568 E_Fm_Smart_Data *sd;
1573 Evas_List *l;
1574 E_Fm_Icon *icon; 1569 E_Fm_Icon *icon;
1575 struct dirent *dir_entry;
1576 char path[PATH_MAX]; 1570 char path[PATH_MAX];
1577 int i; 1571 int i;
1578 int type;
1579 1572
1580 i = 0; 1573 i = 0;
1581 sd = data; 1574 sd = data;
@@ -1711,6 +1704,10 @@ _e_fm_dir_monitor_cb(void *data, Ecore_File_Monitor *ecore_file_monitor,
1711 1704
1712 switch (event) 1705 switch (event)
1713 { 1706 {
1707 case ECORE_FILE_EVENT_NONE:
1708 break;
1709 case ECORE_FILE_EVENT_MODIFIED:
1710 break;
1714 case ECORE_FILE_EVENT_DELETED_SELF: 1711 case ECORE_FILE_EVENT_DELETED_SELF:
1715 dir = _e_fm_dir_pop(sd->dir); 1712 dir = _e_fm_dir_pop(sd->dir);
1716 /* FIXME: we need to fix this, uber hack alert */ 1713 /* FIXME: we need to fix this, uber hack alert */