raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=34bb3bb9a5d8a74361d167ba2a2db785c5f2ccb4

commit 34bb3bb9a5d8a74361d167ba2a2db785c5f2ccb4
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 14 13:52:12 2015 +0900

    efreetd - cache - mark cd as const as it isnt needing a free on return
---
 src/bin/efreet/efreetd_cache.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bin/efreet/efreetd_cache.c b/src/bin/efreet/efreetd_cache.c
index 12f16cb..a4887e6 100644
--- a/src/bin/efreet/efreetd_cache.c
+++ b/src/bin/efreet/efreetd_cache.c
@@ -190,7 +190,7 @@ subdir_cache_save(void)
    subdir_need_save = EINA_FALSE;
 }
 
-static Subdir_Cache_Dir *
+static const Subdir_Cache_Dir *
 subdir_cache_get(const struct stat *st, const char *path)
 {
    Eina_Iterator *it;
@@ -546,7 +546,7 @@ icon_changes_listen_recursive(Eina_Inarray *stack, const 
char *path, Eina_Bool b
    if (S_ISDIR(st.st_mode))
      {
         unsigned int i;
-        Subdir_Cache_Dir *cd = subdir_cache_get(&st, path);
+        const Subdir_Cache_Dir *cd = subdir_cache_get(&st, path);
         icon_changes_monitor_add(&st, path);
         if (cd)
           {
@@ -585,7 +585,7 @@ desktop_changes_listen_recursive(Eina_Inarray *stack, const 
char *path, Eina_Boo
    if (S_ISDIR(st.st_mode))
      {
         unsigned int i;
-        Subdir_Cache_Dir *cd = subdir_cache_get(&st, path);
+        const Subdir_Cache_Dir *cd = subdir_cache_get(&st, path);
         desktop_changes_monitor_add(&st, path);
         if (cd)
           {

-- 


Reply via email to