X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fbattery.c;h=d921484dc74e410191aee2fbc08d37dddfc1db52;hb=99eb08be924850cf76e3dece205d5cbf9c7d74c7;hp=33ba29231556bc7feec6a00b35276931224100d1;hpb=9b626288aff81c68fe19210a58b4a32eeefde9d3;p=collectd.git diff --git a/src/battery.c b/src/battery.c index 33ba2923..d921484d 100644 --- a/src/battery.c +++ b/src/battery.c @@ -1,6 +1,7 @@ /** * collectd - src/battery.c * Copyright (C) 2006,2007 Florian octo Forster + * Copyright (C) 2008 Michał Mirosław * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -17,6 +18,7 @@ * * Authors: * Florian octo Forster + * Michał Mirosław **/ #include "collectd.h" @@ -109,7 +111,7 @@ static void battery_submit (const char *plugin_instance, const char *type, doubl } /* void battery_submit */ #if HAVE_IOKIT_PS_IOPOWERSOURCES_H || HAVE_IOKIT_IOKITLIB_H -double dict_get_double (CFDictionaryRef dict, char *key_string) +static double dict_get_double (CFDictionaryRef dict, char *key_string) { double val_double; long long val_int; @@ -512,7 +514,8 @@ static int battery_read (void) if (0 == access (battery_acpi_dir, R_OK)) walk_directory (battery_acpi_dir, battery_read_acpi, - /* user_data = */ NULL); + /* user_data = */ NULL, + /* include hidden */ 0); else { char errbuf[1024];