projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b32a8d3
)
eo: Fix warnins (return NULL instead of bool)
author
Jean-Philippe Andre
<jp.andre@samsung.com>
Fri, 8 Jul 2016 03:26:07 +0000
(12:26 +0900)
committer
Jean-Philippe Andre
<jp.andre@samsung.com>
Fri, 8 Jul 2016 03:27:29 +0000
(12:27 +0900)
src/lib/eo/eo_base_class.c
patch
|
blob
|
history
diff --git
a/src/lib/eo/eo_base_class.c
b/src/lib/eo/eo_base_class.c
index
3a7f0a3
..
2e2fe3f
100644
(file)
--- 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;