[dovecot-cvs] dovecot/src/auth cookie.c,1.6,1.7 userinfo-passwd-file.c,1.23,1.24
cras at procontrol.fi
cras at procontrol.fi
Sat Jan 11 17:29:48 EET 2003
Update of /home/cvs/dovecot/src/auth
In directory danu:/tmp/cvs-serv7725/src/auth
Modified Files:
cookie.c userinfo-passwd-file.c
Log Message:
Rewrote hash table code, works with less memory now. Also some memory
allocation fixes to thread extension code.
Index: cookie.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/cookie.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cookie.c 5 Jan 2003 13:09:51 -0000 1.6
+++ cookie.c 11 Jan 2003 15:29:46 -0000 1.7
@@ -155,7 +155,8 @@
oldest_cookie = NULL;
next_cookie = &oldest_cookie;
- cookies = hash_create(default_pool, 100, cookie_hash, cookie_cmp);
+ cookies = hash_create(default_pool, default_pool, 100,
+ cookie_hash, cookie_cmp);
to = timeout_add(10000, cookie_timeout, NULL);
}
Index: userinfo-passwd-file.c
===================================================================
RCS file: /home/cvs/dovecot/src/auth/userinfo-passwd-file.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- userinfo-passwd-file.c 5 Jan 2003 13:13:07 -0000 1.23
+++ userinfo-passwd-file.c 11 Jan 2003 15:29:46 -0000 1.24
@@ -350,7 +350,8 @@
pw->path = p_strdup(pool, path);
pw->stamp = st.st_mtime;
pw->fd = fd;
- pw->users = hash_create(pool, 100, str_hash, (HashCompareFunc) strcmp);
+ pw->users = hash_create(default_pool, pool, 100,
+ str_hash, (HashCompareFunc) strcmp);
passwd_file_parse_file(pw);
return pw;
More information about the dovecot-cvs
mailing list