]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/dictionary.h
Fix build
[netatalk.git] / include / atalk / dictionary.h
index 0d6eb677261157e1f4b3a05dd9e3ca554a066e30..7a910524699446d41745e4b5b6fb52aa0503e723 100644 (file)
@@ -50,8 +50,8 @@
 typedef struct _dictionary_ {
        int                             n ;             /** Number of entries in dictionary */
        int                             size ;  /** Storage size */
-       char            **      val ;   /** List of string values */
-       char            **  key ;       /** List of string keys */
+       char        **  val ;   /** List of string values */
+       char        **  key ;   /** List of string keys */
        unsigned         *      hash ;  /** List of hash values for keys */
 } dictionary ;
 
@@ -63,7 +63,7 @@ typedef struct _dictionary_ {
 unsigned   dictionary_hash  (char * key);
 dictionary *dictionary_new  (int size);
 void       dictionary_del   (dictionary * vd);
-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);
 int        dictionary_set   (dictionary * vd, char *section, char * key, char * val);
 void       dictionary_unset (dictionary * d, char *section, char * key);
 void       dictionary_dump  (dictionary * d, FILE * out);