From: Ruben Kerkhof Date: Fri, 11 Mar 2016 18:50:04 +0000 (+0100) Subject: battery plugin: constify X-Git-Tag: collectd-5.6.0~390 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9c1acd10074995f6ec95eca6664c4bce4b7d7c1b;p=collectd.git battery plugin: constify --- diff --git a/src/battery.c b/src/battery.c index c4c050d7..b87739ac 100644 --- a/src/battery.c +++ b/src/battery.c @@ -143,7 +143,7 @@ static void submit_capacity (char const *plugin_instance, /* {{{ */ } /* }}} void submit_capacity */ #if HAVE_IOKIT_PS_IOPOWERSOURCES_H || HAVE_IOKIT_IOKITLIB_H -static double dict_get_double (CFDictionaryRef dict, char *key_string) /* {{{ */ +static double dict_get_double (CFDictionaryRef dict, const char *key_string) /* {{{ */ { double val_double; long long val_int;