From fe3b905db6b6f5a41ce8a6dc2f52ef16ce9fc8cf Mon Sep 17 00:00:00 2001 From: Nicholas Humfrey Date: Mon, 17 Nov 2014 23:16:05 +0000 Subject: [PATCH] Added return(0) to the Mac/IOKit variant of battery_read() --- src/battery.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/battery.c b/src/battery.c index 62c2964b..185442c1 100644 --- a/src/battery.c +++ b/src/battery.c @@ -376,6 +376,8 @@ static int battery_read (void) /* {{{ */ battery_submit ("0", "current", current); if (!isnan (voltage)) battery_submit ("0", "voltage", voltage); + + return (0); } /* }}} int battery_read */ /* #endif HAVE_IOKIT_IOKITLIB_H || HAVE_IOKIT_PS_IOPOWERSOURCES_H */ -- 2.30.2