Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_desktop Modified Files: Ecore_Desktop.h ecore_desktop_icon.c Log Message: No const modifier on memory which should be freed. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/Ecore_Desktop.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- Ecore_Desktop.h 22 Sep 2006 14:55:43 -0000 1.31 +++ Ecore_Desktop.h 23 Sep 2006 10:53:50 -0000 1.32 @@ -211,7 +211,7 @@ EAPI int ecore_desktop_icon_init(void); EAPI int ecore_desktop_icon_shutdown(void); - const char *ecore_desktop_icon_find(const char *icon, + EAPI char *ecore_desktop_icon_find(const char *icon, const char *icon_size, const char *icon_theme); =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop_icon.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- ecore_desktop_icon.c 23 Sep 2006 10:34:23 -0000 1.28 +++ ecore_desktop_icon.c 23 Sep 2006 10:53:50 -0000 1.29 @@ -8,7 +8,7 @@ //#define DEBUG 1 -static const char *_ecore_desktop_icon_find0(const char *icon, +static char *_ecore_desktop_icon_find0(const char *icon, const char *icon_size, const char *icon_theme); @@ -49,14 +49,14 @@ * @ingroup Ecore_Desktop_Icon_Group */ -const char * +EAPI char * ecore_desktop_icon_find(const char *icon, const char *icon_size, const char *icon_theme) { - const char *dir = NULL, *icn; - Ecore_List *icons; - int in_cache = 0; - double begin; + char *dir = NULL, *icn; + Ecore_List *icons; + int in_cache = 0; + double begin; begin = ecore_time_get(); if (icon == NULL) @@ -75,7 +75,7 @@ if (!icons) return NULL; ecore_list_goto_first(icons); - while ((icn = (char *)ecore_list_next(icons))) + while ((icn = ecore_list_next(icons))) { char *ext; #ifdef DEBUG @@ -121,7 +121,7 @@ * @param icon_theme The icon theme to search in. * @return The full path to the found icon. */ -static const char * +static char * _ecore_desktop_icon_find0(const char *icon, const char *icon_size, const char *icon_theme) { ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs