* add icon directory
[citadel.git] / webcit / preferences.c
index 543c97ae367a6867f8846327b7e24d034bdaf288..ea5e3c6a05314a3456fcee64dd2139d93f312b45 100644 (file)
@@ -9,6 +9,11 @@
 #include "webserver.h"
 #include "groupdav.h"
 
+inline const char *PrintPref(void *Prefstr)
+{
+       return Prefstr;
+}
+
 /*
  * display preferences dialog
  */
@@ -106,7 +111,7 @@ void save_preferences(void) {
                char *Key;
                
                Hash = WC->hash_prefs;
-               PrintHash(Hash);
+               PrintHash(Hash, PrintPref, NULL);
                HashPos = GetNewHashPos();
                while (GetNextHashPos(Hash, HashPos, &len, &Key, (void**)&Value)!=0)
                {
@@ -132,7 +137,7 @@ void get_preference(char *key, char *value, size_t value_len) {
        void *hash_value = NULL;
        
        strcpy(value, "");
-       PrintHash(WC->hash_prefs);
+       PrintHash(WC->hash_prefs, PrintPref, NULL);
        if (GetHash(WC->hash_prefs, key, strlen(key), &hash_value) == 0)
                return;