From a85cbce2cbca17b71e909e1a2e3cdec35c789ce8 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Sat, 23 Jul 2011 18:10:11 +0000 Subject: [PATCH] E: Use e_util_env_set (more portable). Fix formatting. SVN revision: 61616 --- src/bin/e_module.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/bin/e_module.c b/src/bin/e_module.c index 6c39f9d8a..0961c69dd 100644 --- a/src/bin/e_module.c +++ b/src/bin/e_module.c @@ -46,9 +46,7 @@ e_module_shutdown(void) /* do not use EINA_LIST_FREE! e_object_del modifies list */ if (x_fatal) - { - e_module_save_all(); - } + e_module_save_all(); else { while (_e_modules) @@ -94,9 +92,9 @@ e_module_all_load(void) if (!em->name) continue; - setenv("E_MODULE_LOAD", em->name, 1); + e_util_env_set("E_MODULE_LOAD", em->name); snprintf (buf, sizeof(buf), _("Loading Module: %s"), em->name); - e_init_status_set(em->name); + e_init_status_set(buf); m = e_module_new(em->name); if (m) e_module_enable(m); @@ -140,7 +138,7 @@ e_module_new(const char *name) m->error = 1; goto init_done; } - m->handle = dlopen(modpath, RTLD_NOW | RTLD_GLOBAL); + m->handle = dlopen(modpath, (RTLD_NOW | RTLD_GLOBAL)); if (!m->handle) { snprintf(body, sizeof(body), @@ -573,7 +571,6 @@ _e_module_sort_priority(const void *d1, const void *d2) return (m2->priority - m1->priority); } - static void _e_module_event_update_free(void *data __UNUSED__, void *event) {