a string allocated in the dictionary; do not free or modify them.
*/
/*--------------------------------------------------------------------------*/
-const char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys)
+char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys)
{
int i, j, seclen ;
char keym[ASCIILINESZ+1];
}
}
- return keys;
+ return (char**)keys;
}
/*-------------------------------------------------------------------------*/
the dictionary, do not free or modify it.
*/
/*--------------------------------------------------------------------------*/
-const char * iniparser_getstring(const dictionary * d, const char * key, const char * def)
+char * iniparser_getstring(const dictionary * d, const char * key, const char * def)
{
const char * lc_key ;
- const char * sval ;
+ char * sval ;
char tmp_str[ASCIILINESZ+1];
if (d==NULL || key==NULL)
- return def ;
+ return (char*)def ;
lc_key = strlwc(key, tmp_str, sizeof(tmp_str));
- sval = dictionary_get(d, lc_key, def);
+ sval = (char*)dictionary_get(d, lc_key, def);
return sval ;
}
a string allocated in the dictionary; do not free or modify them.
*/
/*--------------------------------------------------------------------------*/
-const char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys);
+char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys);
/*-------------------------------------------------------------------------*/
the dictionary, do not free or modify it.
*/
/*--------------------------------------------------------------------------*/
-const char * iniparser_getstring(const dictionary * d, const char * key, const char * def);
+char * iniparser_getstring(const dictionary * d, const char * key, const char * def);
/*-------------------------------------------------------------------------*/
/**