From: Nicholas Humfrey Date: Mon, 17 Nov 2014 23:16:05 +0000 (+0000) Subject: Added return(0) to the Mac/IOKit variant of battery_read() X-Git-Tag: collectd-5.5.0~145^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fe3b905db6b6f5a41ce8a6dc2f52ef16ce9fc8cf;p=collectd.git Added return(0) to the Mac/IOKit variant of battery_read() --- 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 */