okra pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=731590ee7613e0af29e9e51906c1937dbf3dea82

commit 731590ee7613e0af29e9e51906c1937dbf3dea82
Author: Stephen 'Okra' Houston <smhousto...@gmail.com>
Date:   Wed Jul 12 15:43:39 2017 -0500

    Luncher: Remove useless and dangerous global.
---
 src/modules/luncher/luncher.h | 1 -
 src/modules/luncher/mod.c     | 3 +--
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/modules/luncher/luncher.h b/src/modules/luncher/luncher.h
index e2b7037e9..e64ce7f22 100644
--- a/src/modules/luncher/luncher.h
+++ b/src/modules/luncher/luncher.h
@@ -114,6 +114,5 @@ EINTERN void         grid_recalculate(Instance *inst);
 
 extern Config *luncher_config;
 extern Eina_List *luncher_instances;
-extern E_Module *module;
 
 #endif
diff --git a/src/modules/luncher/mod.c b/src/modules/luncher/mod.c
index b03e34c1a..919d63f55 100644
--- a/src/modules/luncher/mod.c
+++ b/src/modules/luncher/mod.c
@@ -5,7 +5,6 @@
 static E_Config_DD *conf_edd = NULL;
 static E_Config_DD *conf_item_edd = NULL;
 Eina_List *luncher_instances = NULL;
-E_Module *module = NULL;
 Config *luncher_config = NULL;
 
 EINTERN void
@@ -91,7 +90,7 @@ e_modapi_init(E_Module *m)
 {
    luncher_init();
 
-   module = m;
+   luncher_config->module = m;
    return m;
 }
 

-- 


Reply via email to