From d01ed68825ffb0e12ca7107cf2a903ed3e24c282 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Wed, 3 Feb 2016 16:32:50 +0000 Subject: [PATCH] Eo: fix eo_shutdown()'s return value to be FALSE on shutdown. The return value of init/shutdown is true if eo is init, false otherwise. This was broken until now. @fix. --- src/lib/eo/Eo.h | 4 ++-- src/lib/eo/eo.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h index 4eb13cd607..d2dbfb781b 100644 --- a/src/lib/eo/Eo.h +++ b/src/lib/eo/Eo.h @@ -415,7 +415,7 @@ EAPI const char *eo_class_name_get(const Eo_Class *klass); /** * @brief Init the eo subsystem - * @return @c EINA_TRUE on success. + * @return @c EINA_TRUE if eo is init, @c EINA_FALSE otherwise. * * @see eo_shutfown() */ @@ -423,7 +423,7 @@ EAPI Eina_Bool eo_init(void); /** * @brief Shutdown the eo subsystem - * @return @c EINA_TRUE on success. + * @return @c EINA_TRUE if eo is init, @c EINA_FALSE otherwise. * * @see eo_init() */ diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index ede28631ff..2fd8f535c9 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -1898,7 +1898,7 @@ eo_shutdown(void) _eo_log_dom = -1; eina_shutdown(); - return EINA_TRUE; + return EINA_FALSE; } EAPI Eina_Bool