summaryrefslogtreecommitdiffstats
path: root/source/locking
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-08-01 13:39:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:29:08 -0500
commita7449e4ab390b3c1d9d5a0bbc466f71de17918e0 (patch)
tree642df53b0613f5604661cf1217b2e8b7127859c7 /source/locking
parent8cccf470cbce87618753bc205a0c9cac1edf4d9c (diff)
downloadsamba-a7449e4ab390b3c1d9d5a0bbc466f71de17918e0.tar.gz
samba-a7449e4ab390b3c1d9d5a0bbc466f71de17918e0.tar.xz
samba-a7449e4ab390b3c1d9d5a0bbc466f71de17918e0.zip
r24117: use locking_key() instead of forming the TDB_DATA key
by hand metze
Diffstat (limited to 'source/locking')
-rw-r--r--source/locking/locking.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c
index e4d06b8bfda..d79d73099b9 100644
--- a/source/locking/locking.c
+++ b/source/locking/locking.c
@@ -782,10 +782,7 @@ struct share_mode_lock *get_share_mode_lock(TALLOC_CTX *mem_ctx,
const char *fname)
{
struct share_mode_lock *lck;
- TDB_DATA key;
-
- key.dptr = (unsigned char *)&id;
- key.dsize = sizeof(id);
+ TDB_DATA key = locking_key(id);
if (!(lck = TALLOC_P(mem_ctx, struct share_mode_lock))) {
DEBUG(0, ("talloc failed\n"));