svn commit: samba r18922 - in branches/SAMBA_3_0/source/iniparser/src: .

gd at samba.org gd at samba.org
Tue Sep 26 16:26:44 GMT 2006


Author: gd
Date: 2006-09-26 16:26:43 +0000 (Tue, 26 Sep 2006)
New Revision: 18922

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18922

Log:
Apply some const.

Guenther

Modified:
   branches/SAMBA_3_0/source/iniparser/src/iniparser.c
   branches/SAMBA_3_0/source/iniparser/src/iniparser.h


Changeset:
Modified: branches/SAMBA_3_0/source/iniparser/src/iniparser.c
===================================================================
--- branches/SAMBA_3_0/source/iniparser/src/iniparser.c	2006-09-26 16:26:17 UTC (rev 18921)
+++ branches/SAMBA_3_0/source/iniparser/src/iniparser.c	2006-09-26 16:26:43 UTC (rev 18922)
@@ -230,7 +230,7 @@
   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 @@
   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 @@
   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 @@
   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 @@
  */
 /*--------------------------------------------------------------------------*/
 
-dictionary * iniparser_load(char * ininame)
+dictionary * iniparser_load(const char * ininame)
 {
     dictionary  *   d ;
     char        lin[ASCIILINESZ+1];

Modified: branches/SAMBA_3_0/source/iniparser/src/iniparser.h
===================================================================
--- branches/SAMBA_3_0/source/iniparser/src/iniparser.h	2006-09-26 16:26:17 UTC (rev 18921)
+++ branches/SAMBA_3_0/source/iniparser/src/iniparser.h	2006-09-26 16:26:43 UTC (rev 18922)
@@ -123,7 +123,7 @@
   iniparser_getstring() instead.
  */
 /*--------------------------------------------------------------------------*/
-char * iniparser_getstr(dictionary * d, char * key);
+char * iniparser_getstr(dictionary * d, const char * key);
 
 
 /*-------------------------------------------------------------------------*/
@@ -141,7 +141,7 @@
   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 @@
   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 @@
   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 @@
   The returned dictionary must be freed using iniparser_freedict().
  */
 /*--------------------------------------------------------------------------*/
-dictionary * iniparser_load(char * ininame);
+dictionary * iniparser_load(const char * ininame);
 
 /*-------------------------------------------------------------------------*/
 /**



More information about the samba-cvs mailing list