summaryrefslogtreecommitdiff
path: root/source3/tdb/spinlock.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-10-20 18:05:22 +0000
committerJeremy Allison <jra@samba.org>2003-10-20 18:05:22 +0000
commitf3121b19e4a4951350342a1882c9017686a995b1 (patch)
treec09f6ad540c145a478c9d75b0375ddc438d2f9b2 /source3/tdb/spinlock.c
parentbfcb776abd1ead323963912efef2641e0bc41a03 (diff)
downloadsamba-f3121b19e4a4951350342a1882c9017686a995b1.tar.gz
samba-f3121b19e4a4951350342a1882c9017686a995b1.tar.bz2
samba-f3121b19e4a4951350342a1882c9017686a995b1.zip
Merge tridge's tdb updates.
Jeremy. (This used to be commit f81fdcc935317f66d562d485a40948c2a8bcbb21)
Diffstat (limited to 'source3/tdb/spinlock.c')
-rw-r--r--source3/tdb/spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/spinlock.c b/source3/tdb/spinlock.c
index 2370ce3bdd..3fddeafb2c 100644
--- a/source3/tdb/spinlock.c
+++ b/source3/tdb/spinlock.c
@@ -372,7 +372,7 @@ int tdb_create_rwlocks(int fd, unsigned int hash_size)
unsigned size, i;
tdb_rwlock_t *rwlocks;
- size = (hash_size + 1) * sizeof(tdb_rwlock_t);
+ size = TDB_SPINLOCK_SIZE(hash_size);
rwlocks = malloc(size);
if (!rwlocks)
return -1;