* follo hashiterator api-change
[citadel.git] / citadel / modules / expire / serv_expire.c
index 7caf493d9677dea67b0e8d25f60cfca1c07e0fdf..2a585e5515f02068ef6f55fc43cc620d755fc225 100644 (file)
@@ -802,7 +802,7 @@ int PurgeStaleOpenIDassociations(void) {
        char *deleteme = NULL;
        long len;
        void *Value;
-       char *Key;
+       const char *Key;
        int num_deleted = 0;
 
        keys = NewHash(1, NULL);
@@ -824,7 +824,7 @@ int PurgeStaleOpenIDassociations(void) {
 
        /* Go through the hash list, deleting keys we stored in it */
 
-       HashPos = GetNewHashPos();
+       HashPos = GetNewHashPos(keys, 0);
        while (GetNextHashPos(keys, HashPos, &len, &Key, &Value)!=0)
        {
                CtdlLogPrintf(CTDL_DEBUG, "Deleting associated OpenID <%s>\n", Value);