Added return(0) to the Mac/IOKit variant of battery_read()
authorNicholas Humfrey <njh@aelius.com>
Mon, 17 Nov 2014 23:16:05 +0000 (23:16 +0000)
committerNicholas Humfrey <njh@aelius.com>
Mon, 17 Nov 2014 23:16:05 +0000 (23:16 +0000)
src/battery.c

index 62c2964..185442c 100644 (file)
@@ -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 */