ef -> battery_config

bsd mis-port fix


SVN revision: 22261
This commit is contained in:
Carsten Haitzler 2006-04-20 11:48:42 +00:00
parent fbd972cdb9
commit c01f66c725
1 changed files with 2 additions and 2 deletions

View File

@ -195,13 +195,13 @@ _battery_cb_check(void *data)
{
len = 3;
if (sysctlnametomib("hw.acpi.acline", acline_mib, &len) == 0)
ef->battery_check_mode = CHECK_ACPI;
battery_config->battery_check_mode = CHECK_ACPI;
}
else
{
apm_fd = open("/dev/apm", O_RDONLY);
if (apm_fd != -1)
ef->battery_check_mode = CHECK_APM;
battery_config->battery_check_mode = CHECK_APM;
}
}
switch (ef->battery_check_mode)