diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-10-02 19:02:41 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-10-02 19:02:41 +0000 |
commit | 16d1b47b4f3f9ae13535ea7a2c02bd207c069d5c (patch) | |
tree | 975d67b5fe35279f3f4834b4c345b18b927a57b9 /nscd/mem.c | |
parent | af47bc499af76c844b28d9ca912ed81f2a353708 (diff) |
Updated to fedora-glibc-20061002T1858cvs/fedora-glibc-2_5-2cvs/fedora-2_5-base
Diffstat (limited to 'nscd/mem.c')
-rw-r--r-- | nscd/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/mem.c b/nscd/mem.c index a41c0bdb07..5206c5af38 100644 --- a/nscd/mem.c +++ b/nscd/mem.c @@ -1,5 +1,5 @@ /* Cache memory handling. - Copyright (C) 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2004. @@ -480,12 +480,12 @@ mempool_alloc (struct database_dyn *db, size_t len) { /* Try to resize the database. Grow size of 1/8th. */ size_t oldtotal = (sizeof (struct database_pers_head) - + db->head->module * sizeof (ref_t) + + roundup (db->head->module * sizeof (ref_t), ALIGN) + db->head->data_size); size_t new_data_size = (db->head->data_size + MAX (2 * len, db->head->data_size / 8)); size_t newtotal = (sizeof (struct database_pers_head) - + db->head->module * sizeof (ref_t) + + roundup (db->head->module * sizeof (ref_t), ALIGN) + new_data_size); if (newtotal > db->max_db_size) { |