]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/iniparser/dictionary.c
Remove CVS keywords
[netatalk.git] / libatalk / iniparser / dictionary.c
index 6ba083583de8d3b6b7daf9c3ed1f71d3be0e5c92..f1ff81567aefcccb8da5c45730a8256a40f49920 100644 (file)
@@ -3,7 +3,6 @@
    @file       dictionary.c
    @author     N. Devillard
    @date       Sep 2007
-   @version    $Revision: 1.27 $
    @brief      Implements a dictionary for string variables.
 
    This module implements a simple dictionary object, i.e. a list
 /*--------------------------------------------------------------------------*/
 
 /*
-       $Id: dictionary.c,v 1.27 2007-11-23 21:39:18 ndevilla Exp $
-       $Revision: 1.27 $
 */
 /*---------------------------------------------------------------------------
                                                                Includes
  ---------------------------------------------------------------------------*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <atalk/dictionary.h>
 #include <atalk/compat.h>
 
@@ -193,7 +194,7 @@ void dictionary_del(dictionary * d)
   dictionary object, you should not try to free it or modify it.
  */
 /*--------------------------------------------------------------------------*/
-char * dictionary_get(dictionary * d, char *section, char * key, char * def)
+const char * dictionary_get(const dictionary * d, const char *section, const char * key, const char * def)
 {
        unsigned        hash ;
        int                     i ;
@@ -244,7 +245,7 @@ int dictionary_set(dictionary * d, char *section, char * key, char * val)
        int                     i ;
        unsigned        hash ;
 
-       if (d==NULL || key==NULL) return -1 ;
+       if (d==NULL || section==NULL) return -1 ;
        
        /* Compute hash for this key */
        hash = dictionary_hash(makekey(section, key));