summaryrefslogtreecommitdiff
path: root/src/bin/efreet/efreetd_cache.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-14 13:52:12 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-04-14 13:52:37 +0900
commit34bb3bb9a5d8a74361d167ba2a2db785c5f2ccb4 (patch)
tree70a8734e6c480f78c9a82cdb428dd20fdc1de2ae /src/bin/efreet/efreetd_cache.c
parenteaa6961378158f1570ba446011bef777b43f9a58 (diff)
efreetd - cache - mark cd as const as it isnt needing a free on return
Diffstat (limited to 'src/bin/efreet/efreetd_cache.c')
-rw-r--r--src/bin/efreet/efreetd_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/efreet/efreetd_cache.c b/src/bin/efreet/efreetd_cache.c
index 12f16cbe6f..a4887e6841 100644
--- a/src/bin/efreet/efreetd_cache.c
+++ b/src/bin/efreet/efreetd_cache.c
@@ -190,7 +190,7 @@ subdir_cache_save(void)
190 subdir_need_save = EINA_FALSE; 190 subdir_need_save = EINA_FALSE;
191} 191}
192 192
193static Subdir_Cache_Dir * 193static const Subdir_Cache_Dir *
194subdir_cache_get(const struct stat *st, const char *path) 194subdir_cache_get(const struct stat *st, const char *path)
195{ 195{
196 Eina_Iterator *it; 196 Eina_Iterator *it;
@@ -546,7 +546,7 @@ icon_changes_listen_recursive(Eina_Inarray *stack, const char *path, Eina_Bool b
546 if (S_ISDIR(st.st_mode)) 546 if (S_ISDIR(st.st_mode))
547 { 547 {
548 unsigned int i; 548 unsigned int i;
549 Subdir_Cache_Dir *cd = subdir_cache_get(&st, path); 549 const Subdir_Cache_Dir *cd = subdir_cache_get(&st, path);
550 icon_changes_monitor_add(&st, path); 550 icon_changes_monitor_add(&st, path);
551 if (cd) 551 if (cd)
552 { 552 {
@@ -585,7 +585,7 @@ desktop_changes_listen_recursive(Eina_Inarray *stack, const char *path, Eina_Boo
585 if (S_ISDIR(st.st_mode)) 585 if (S_ISDIR(st.st_mode))
586 { 586 {
587 unsigned int i; 587 unsigned int i;
588 Subdir_Cache_Dir *cd = subdir_cache_get(&st, path); 588 const Subdir_Cache_Dir *cd = subdir_cache_get(&st, path);
589 desktop_changes_monitor_add(&st, path); 589 desktop_changes_monitor_add(&st, path);
590 if (cd) 590 if (cd)
591 { 591 {