From 73c96c0136353264a2e861ec95253de66f3ef246 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Fri, 8 Jul 2016 12:26:07 +0900 Subject: [PATCH] eo: Fix warnins (return NULL instead of bool) --- src/lib/eo/eo_base_class.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c index 3a7f0a3117..2e2fe3fb2e 100644 --- a/src/lib/eo/eo_base_class.c +++ b/src/lib/eo/eo_base_class.c @@ -178,7 +178,7 @@ _key_generic_set(const Eo *obj, Eo_Base_Data *pd, const char *key, const void *d if (!strcmp(node->key, key)) { if ((node->d_type == d_type) && (node->d.ptr == data)) - return EINA_FALSE; + return NULL; ext->generic_data = eina_inlist_remove (ext->generic_data, EINA_INLIST_GET(node)); _eo_generic_data_node_free(node); @@ -192,7 +192,7 @@ _key_generic_set(const Eo *obj, Eo_Base_Data *pd, const char *key, const void *d if (ext) { node = calloc(1, sizeof(Eo_Generic_Data_Node)); - if (!node) return EINA_FALSE; + if (!node) return NULL; node->obj = obj; node->key = eina_stringshare_add(key); node->d.ptr = (void *) data;