git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/e_dbus@48479
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
e_connman_element_listener_add(E_Connman_Element *element, void (*cb)(void *data, const E_Connman_Element *element), const void *data, void (*free_data)(void *data))
{
E_Connman_Element_Listener *l;
-
- if (!element)
- {
- ERR("safety check failed: element == NULL");
- goto error;
- }
- if (!cb)
- {
- ERR("safety check failed: cb == NULL");
- goto error;
- }
+ EINA_SAFETY_ON_FALSE_GOTO(element, error);
+ EINA_SAFETY_ON_FALSE_GOTO(cb, error);
l = malloc(sizeof(*l));
if (!l)