From 7f78ae9e53b1548f372e476e0b61967630f96f64 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 30 Oct 2013 12:07:42 +0900 Subject: [PATCH] module version sanity check -> make sure module versions match EXACTLY. if compile time headers (module version) does not match e's version then modules likely may fail; to work right - so make sure they match exactly (for release purposes) --- src/bin/e_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_module.c b/src/bin/e_module.c index aa9287845..9b9041a54 100644 --- a/src/bin/e_module.c +++ b/src/bin/e_module.c @@ -351,11 +351,11 @@ e_module_new(const char *name) m->error = 1; goto init_done; } - if (m->api->version < E_MODULE_API_VERSION) + if (m->api->version != E_MODULE_API_VERSION) { snprintf(body, sizeof(body), _("Module API Error
Error initializing Module: %s
" - "It requires a minimum module API version of: %i.
" + "It requires a module API version of: %i.
" "The module API advertized by Enlightenment is: %i.
"), _(m->api->name), m->api->version, E_MODULE_API_VERSION);