This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository enlightenment.
View the commit online.
commit 6919b1576002b22634e3163d64d41bf5f850f6a6
Author: Carsten Haitzler <[email protected]>
AuthorDate: Mon Mar 23 15:41:09 2026 +0000
battery - fix bsd build
---
src/bin/system/e_system_battery.c | 2 +-
src/modules/battery/e_mod_main.c | 2 --
src/modules/battery/e_mod_main.h | 1 +
src/modules/battery/e_mod_sysctl.c | 4 ++--
4 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/bin/system/e_system_battery.c b/src/bin/system/e_system_battery.c
index 96175190a..7b6e54388 100644
--- a/src/bin/system/e_system_battery.c
+++ b/src/bin/system/e_system_battery.c
@@ -121,8 +121,8 @@ e_system_battery_init(void)
watch = eeze_udev_watch_add(EEZE_UDEV_TYPE_POWER_BAT, EEZE_UDEV_EVENT_NONE,
_cb_eeze, NULL);
-#endif
e_system_inout_command_register("battery-lim-set", _cb_battery_lim_set, NULL);
+#endif
}
void
diff --git a/src/modules/battery/e_mod_main.c b/src/modules/battery/e_mod_main.c
index c7edb37f7..716477de3 100644
--- a/src/modules/battery/e_mod_main.c
+++ b/src/modules/battery/e_mod_main.c
@@ -904,14 +904,12 @@ _battery_device_update(void)
int have_power = 0;
int charging = 0;
int batnum = 0;
- int acnum = 0;
unsigned long long tim = time(NULL);
EINA_LIST_FOREACH(device_ac_adapters, l, ac)
{
if (ac->present)
{
- acnum++;
have_power = 1;
}
}
diff --git a/src/modules/battery/e_mod_main.h b/src/modules/battery/e_mod_main.h
index c91021b00..8da276617 100644
--- a/src/modules/battery/e_mod_main.h
+++ b/src/modules/battery/e_mod_main.h
@@ -96,6 +96,7 @@ struct _Battery
{
const char *udi;
#if defined HAVE_EEZE || defined __OpenBSD__ || defined __DragonFly__ || defined __FreeBSD__ || defined __NetBSD__
+ Ecore_Timer *timer; // ued by bsd
Eina_Bool present E_BITFIELD;
Eina_Bool charging E_BITFIELD;
Eina_Bool is_micro_watts E_BITFIELD;
diff --git a/src/modules/battery/e_mod_sysctl.c b/src/modules/battery/e_mod_sysctl.c
index 713329ea3..a2fbd650d 100644
--- a/src/modules/battery/e_mod_sysctl.c
+++ b/src/modules/battery/e_mod_sysctl.c
@@ -17,7 +17,7 @@
#endif
static Eina_Bool _battery_sysctl_battery_update_poll(void *data EINA_UNUSED);
-static int _battery_sysctl_battery_update();
+static int _battery_sysctl_battery_update(Battery *bat);
extern Eina_List *device_batteries;
extern Eina_List *device_ac_adapters;
@@ -124,7 +124,7 @@ _battery_sysctl_start(void)
}
close(fd);
# endif
- _battery_sysctl_battery_update();
+ _battery_sysctl_battery_update_poll(NULL);
if (bat)
bat->last_update = ecore_time_get();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.