]> git.ozlabs.org Git - ccan/blobdiff - ccan/ciniparser/ciniparser.h
ciniparser: Make key arguments const
[ccan] / ccan / ciniparser / ciniparser.h
index f61b357627fe50582d7a212995c312e0033b4418..b61c1d6eaa48650dbe70c9de3a35c9abd0ac3cd0 100644 (file)
@@ -151,7 +151,7 @@ int ciniparser_getint(dictionary *d, const char *key, int notfound);
  * ini file is given as "section:key". If the key cannot be found,
  * the notfound value is returned.
  */
-double ciniparser_getdouble(dictionary *d, char *key, double notfound);
+double ciniparser_getdouble(dictionary *d, const char *key, double notfound);
 
 /**
  * @brief    Get the string associated to a key, convert to a boolean