summaryrefslogtreecommitdiff
path: root/source3/iniparser
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-09-26 16:26:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:14:47 -0500
commitbf6962b5e83a4dec0b4d9ec3f14bdde26d7b0d47 (patch)
tree2819303792e46ce4ec6fdc2506d3c5b3720893a6 /source3/iniparser
parentbd2f02e6968d19080b8cc4ded129f0b1b78f759d (diff)
downloadsamba-bf6962b5e83a4dec0b4d9ec3f14bdde26d7b0d47.tar.gz
samba-bf6962b5e83a4dec0b4d9ec3f14bdde26d7b0d47.tar.bz2
samba-bf6962b5e83a4dec0b4d9ec3f14bdde26d7b0d47.zip
r18922: Apply some const.
Guenther (This used to be commit d87994788b2c91992d804d8c2465adefc83451b1)
Diffstat (limited to 'source3/iniparser')
-rw-r--r--source3/iniparser/src/iniparser.c10
-rw-r--r--source3/iniparser/src/iniparser.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/source3/iniparser/src/iniparser.c b/source3/iniparser/src/iniparser.c
index 0c06ab364b..67f42a347d 100644
--- a/source3/iniparser/src/iniparser.c
+++ b/source3/iniparser/src/iniparser.c
@@ -230,7 +230,7 @@ void iniparser_dump_ini(dictionary * d, FILE * f)
iniparser_getstring() instead.
*/
/*--------------------------------------------------------------------------*/
-char * iniparser_getstr(dictionary * d, char * key)
+char * iniparser_getstr(dictionary * d, const char * key)
{
return iniparser_getstring(d, key, NULL);
}
@@ -251,7 +251,7 @@ char * iniparser_getstr(dictionary * d, char * key)
the dictionary, do not free or modify it.
*/
/*--------------------------------------------------------------------------*/
-char * iniparser_getstring(dictionary * d, char * key, char * def)
+char * iniparser_getstring(dictionary * d, const char * key, char * def)
{
char * lc_key ;
char * sval ;
@@ -280,7 +280,7 @@ char * iniparser_getstring(dictionary * d, char * key, char * def)
the notfound value is returned.
*/
/*--------------------------------------------------------------------------*/
-int iniparser_getint(dictionary * d, char * key, int notfound)
+int iniparser_getint(dictionary * d, const char * key, int notfound)
{
char * str ;
@@ -346,7 +346,7 @@ double iniparser_getdouble(dictionary * d, char * key, double notfound)
necessarily have to be 0 or 1.
*/
/*--------------------------------------------------------------------------*/
-int iniparser_getboolean(dictionary * d, char * key, int notfound)
+int iniparser_getboolean(dictionary * d, const char * key, int notfound)
{
char * c ;
int ret ;
@@ -442,7 +442,7 @@ void iniparser_unset(dictionary * ini, char * entry)
*/
/*--------------------------------------------------------------------------*/
-dictionary * iniparser_load(char * ininame)
+dictionary * iniparser_load(const char * ininame)
{
dictionary * d ;
char lin[ASCIILINESZ+1];
diff --git a/source3/iniparser/src/iniparser.h b/source3/iniparser/src/iniparser.h
index 98e8b33b78..2df8ffe837 100644
--- a/source3/iniparser/src/iniparser.h
+++ b/source3/iniparser/src/iniparser.h
@@ -123,7 +123,7 @@ void iniparser_dump(dictionary * d, FILE * f);
iniparser_getstring() instead.
*/
/*--------------------------------------------------------------------------*/
-char * iniparser_getstr(dictionary * d, char * key);
+char * iniparser_getstr(dictionary * d, const char * key);
/*-------------------------------------------------------------------------*/
@@ -141,7 +141,7 @@ char * iniparser_getstr(dictionary * d, char * key);
the dictionary, do not free or modify it.
*/
/*--------------------------------------------------------------------------*/
-char * iniparser_getstring(dictionary * d, char * key, char * def);
+char * iniparser_getstring(dictionary * d, const char * key, char * def);
/*-------------------------------------------------------------------------*/
/**
@@ -156,7 +156,7 @@ char * iniparser_getstring(dictionary * d, char * key, char * def);
the notfound value is returned.
*/
/*--------------------------------------------------------------------------*/
-int iniparser_getint(dictionary * d, char * key, int notfound);
+int iniparser_getint(dictionary * d, const char * key, int notfound);
/*-------------------------------------------------------------------------*/
/**
@@ -205,7 +205,7 @@ double iniparser_getdouble(dictionary * d, char * key, double notfound);
necessarily have to be 0 or 1.
*/
/*--------------------------------------------------------------------------*/
-int iniparser_getboolean(dictionary * d, char * key, int notfound);
+int iniparser_getboolean(dictionary * d, const char * key, int notfound);
/*-------------------------------------------------------------------------*/
@@ -264,7 +264,7 @@ int iniparser_find_entry(dictionary * ini, char * entry) ;
The returned dictionary must be freed using iniparser_freedict().
*/
/*--------------------------------------------------------------------------*/
-dictionary * iniparser_load(char * ininame);
+dictionary * iniparser_load(const char * ininame);
/*-------------------------------------------------------------------------*/
/**