From e04d859b348c162706f0cde7cdf79fe258c9607e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 6 Jan 2018 16:12:18 +0100 Subject: [PATCH] PowerStatus: call the APM syscall with the correct struct. --- src/apps/powerstatus/APMDriverInterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/powerstatus/APMDriverInterface.cpp b/src/apps/powerstatus/APMDriverInterface.cpp index 4a050506d3..83f5714db3 100644 --- a/src/apps/powerstatus/APMDriverInterface.cpp +++ b/src/apps/powerstatus/APMDriverInterface.cpp @@ -30,9 +30,9 @@ APMDriverInterface::Connect() status_t status = _kern_generic_syscall(APM_SYSCALLS, B_SYSCALL_INFO, &version, sizeof(version)); if (status == B_OK) { - battery_info info; + apm_battery_info info; status = _kern_generic_syscall(APM_SYSCALLS, APM_GET_BATTERY_INFO, - &info, sizeof(battery_info)); + &info, sizeof(apm_battery_info)); } return status;