X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbattery.c;h=185442c10d319aa53011b2e1c87f058f28fd254c;hb=359b83ce244738d87827712e85a9b5ed7ef6adbf;hp=62c2964bcffb71544c9aa341206fa6e84bfa0b32;hpb=2421812ea47269c50920414a6e3c32448800120f;p=collectd.git 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 */