Code

battery plugin: constify
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 11 Mar 2016 18:50:04 +0000 (19:50 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 11 Mar 2016 18:50:04 +0000 (19:50 +0100)
src/battery.c

index c4c050d7ff1cd11cc70cd2d17323f90da747e542..b87739ac7d03affe2f20047d161f77b2b2d85001 100644 (file)
@@ -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;