From 601ad61e7ddd5a79a0c650ff617b617470fafe07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 25 Nov 2020 12:46:00 +0100 Subject: Unify naming of first argument of Platform_getBattery Use percent throughout --- solaris/Platform.c | 4 ++-- solaris/Platform.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'solaris') diff --git a/solaris/Platform.c b/solaris/Platform.c index f3aaa695..014eaf55 100644 --- a/solaris/Platform.c +++ b/solaris/Platform.c @@ -309,7 +309,7 @@ bool Platform_getNetworkIO(unsigned long int* bytesReceived, return false; } -void Platform_getBattery(double* level, ACPresence* isOnAC) { - *level = NAN; +void Platform_getBattery(double* percent, ACPresence* isOnAC) { + *percent = NAN; *isOnAC = AC_ERROR; } diff --git a/solaris/Platform.h b/solaris/Platform.h index 0c2e44a2..c3381152 100644 --- a/solaris/Platform.h +++ b/solaris/Platform.h @@ -84,6 +84,6 @@ bool Platform_getNetworkIO(unsigned long int* bytesReceived, unsigned long int* bytesTransmitted, unsigned long int* packetsTransmitted); -void Platform_getBattery(double* level, ACPresence* isOnAC); +void Platform_getBattery(double* percent, ACPresence* isOnAC); #endif -- cgit v1.2.3