diff --git a/src/modules/sysinfo/batman/batman.h b/src/modules/sysinfo/batman/batman.h index 92b62479f..70a7b08d8 100644 --- a/src/modules/sysinfo/batman/batman.h +++ b/src/modules/sysinfo/batman/batman.h @@ -99,7 +99,7 @@ EINTERN void _batman_udev_stop(Instance *inst); #elif !defined(__OpenBSD__) && !defined(__DragonFly__) && !defined(__FreeBSD__) && !defined(__NetBSD__) /* in batman_upower.c */ EINTERN int _batman_upower_start(Instance *inst); -EINTERNvoid _batman_upower_stop(void); +EINTERN void _batman_upower_stop(void); /* end batman_upower.c */ #else /* in batman_sysctl.c */ diff --git a/src/modules/sysinfo/batman/batman_upower.c b/src/modules/sysinfo/batman/batman_upower.c index 2230145cf..5ac8a6b49 100644 --- a/src/modules/sysinfo/batman/batman_upower.c +++ b/src/modules/sysinfo/batman/batman_upower.c @@ -350,7 +350,7 @@ _device_removed_cb(void *data, const Eldbus_Message *msg) } } exists = EINA_FALSE; - adapters = _batman_ac_adapter_get(path); + adapters = _batman_ac_adapter_find(path); if (eina_list_count(adapters)) { EINA_LIST_FOREACH(adapters, l, ac)