eo: Fix warnins (return NULL instead of bool)
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 8 Jul 2016 03:26:07 +0000 (12:26 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 8 Jul 2016 03:27:29 +0000 (12:27 +0900)
src/lib/eo/eo_base_class.c

index 3a7f0a3..2e2fe3f 100644 (file)
@@ -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;