* this way arround some compilers like the casts better.
[citadel.git] / webcit / preferences.c
index ea5e3c6a05314a3456fcee64dd2139d93f312b45..c8ec33116afa8f0cb1714486a114912d8c81f8cf 100644 (file)
@@ -107,15 +107,15 @@ void save_preferences(void) {
                long len;
                HashPos *HashPos;
                HashList *Hash;
-               char *Value;
+               void *Value;
                char *Key;
                
                Hash = WC->hash_prefs;
                PrintHash(Hash, PrintPref, NULL);
                HashPos = GetNewHashPos();
-               while (GetNextHashPos(Hash, HashPos, &len, &Key, (void**)&Value)!=0)
+               while (GetNextHashPos(Hash, HashPos, &len, &Key, &Value)!=0)
                {
-                       serv_printf("%s|%s", Key, Value);
+                       serv_printf("%s|%s", Key, (char*)Value);
                }
                serv_puts("");
                serv_puts("000");