summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-05-16 19:36:42 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-05-16 19:36:42 +0000
commitf7b9de9595996eb2d10857d0be09035a290285fc (patch)
tree91943ede7db0f2b8099804b92351e4e525a6c3dd /legacy/efreet
parentfc031b899dfb65979df5b8818ac721dd8e367573 (diff)
efreet: formatting
SVN revision: 48921
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_base.c12
-rw-r--r--legacy/efreet/src/lib/efreet_utils.c6
2 files changed, 9 insertions, 9 deletions
diff --git a/legacy/efreet/src/lib/efreet_base.c b/legacy/efreet/src/lib/efreet_base.c
index 79339c0ede..44800cc500 100644
--- a/legacy/efreet/src/lib/efreet_base.c
+++ b/legacy/efreet/src/lib/efreet_base.c
@@ -246,16 +246,16 @@ efreet_dirs_get(const char *key, const char *fallback)
246 { 246 {
247 *p = '\0'; 247 *p = '\0';
248 if (!eina_list_search_unsorted(dirs, EINA_COMPARE_CB(strcmp), s)) 248 if (!eina_list_search_unsorted(dirs, EINA_COMPARE_CB(strcmp), s))
249 { 249 {
250 // resolve path properly/fully to remove path//path2 to 250 // resolve path properly/fully to remove path//path2 to
251 // path/path2, path/./path2 to path/path2 etc. 251 // path/path2, path/./path2 to path/path2 etc.
252 char *ts = ecore_file_realpath(s); 252 char *ts = ecore_file_realpath(s);
253 if (ts) 253 if (ts)
254 { 254 {
255 dirs = eina_list_append(dirs, (void *)eina_stringshare_add(ts)); 255 dirs = eina_list_append(dirs, (void *)eina_stringshare_add(ts));
256 free(ts); 256 free(ts);
257 } 257 }
258 } 258 }
259 259
260 s = ++p; 260 s = ++p;
261 p = strchr(s, EFREET_PATH_SEP); 261 p = strchr(s, EFREET_PATH_SEP);
diff --git a/legacy/efreet/src/lib/efreet_utils.c b/legacy/efreet/src/lib/efreet_utils.c
index cb75990a41..0f27457343 100644
--- a/legacy/efreet/src/lib/efreet_utils.c
+++ b/legacy/efreet/src/lib/efreet_utils.c
@@ -19,7 +19,7 @@
19 19
20/* define macros and variable for using the eina logging system */ 20/* define macros and variable for using the eina logging system */
21 21
22#ifdef EFREET_MODULE_LOG_DOM 22#ifdef EFREET_MODULE_LOG_DOM
23#undef EFREET_MODULE_LOG_DOM 23#undef EFREET_MODULE_LOG_DOM
24#endif 24#endif
25#define EFREET_MODULE_LOG_DOM _efreet_utils_log_dom 25#define EFREET_MODULE_LOG_DOM _efreet_utils_log_dom
@@ -63,7 +63,7 @@ int
63efreet_util_shutdown(void) 63efreet_util_shutdown(void)
64{ 64{
65 if (--init) return init; 65 if (--init) return init;
66 66
67 eina_log_domain_unregister(_efreet_utils_log_dom); 67 eina_log_domain_unregister(_efreet_utils_log_dom);
68 IF_FREE_HASH(file_id_by_desktop_path); 68 IF_FREE_HASH(file_id_by_desktop_path);
69 if (cache) eet_close(cache); 69 if (cache) eet_close(cache);
@@ -130,7 +130,7 @@ efreet_util_path_to_file_id(const char *path)
130 const char *file_id; 130 const char *file_id;
131 131
132 /* TODO: Check if searching in cache is fast enough */ 132 /* TODO: Check if searching in cache is fast enough */
133 if (!path) return NULL; 133 if (!path) return NULL;
134 file_id = eina_hash_find(file_id_by_desktop_path, path); 134 file_id = eina_hash_find(file_id_by_desktop_path, path);
135 if (file_id) return file_id; 135 if (file_id) return file_id;
136 136