svn commit: samba r24117 - in branches/SAMBA_3_2/source/locking: .
metze at samba.org
metze at samba.org
Wed Aug 1 13:39:26 GMT 2007
Author: metze
Date: 2007-08-01 13:39:25 +0000 (Wed, 01 Aug 2007)
New Revision: 24117
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24117
Log:
use locking_key() instead of forming the TDB_DATA key
by hand
metze
Modified:
branches/SAMBA_3_2/source/locking/locking.c
Changeset:
Modified: branches/SAMBA_3_2/source/locking/locking.c
===================================================================
--- branches/SAMBA_3_2/source/locking/locking.c 2007-08-01 11:32:32 UTC (rev 24116)
+++ branches/SAMBA_3_2/source/locking/locking.c 2007-08-01 13:39:25 UTC (rev 24117)
@@ -782,11 +782,8 @@
const char *fname)
{
struct share_mode_lock *lck;
- TDB_DATA key;
+ TDB_DATA key = locking_key(id);
- key.dptr = (unsigned char *)&id;
- key.dsize = sizeof(id);
-
if (!(lck = TALLOC_P(mem_ctx, struct share_mode_lock))) {
DEBUG(0, ("talloc failed\n"));
return NULL;
More information about the samba-cvs
mailing list