summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/account_pol.c2
-rw-r--r--source3/lib/gencache.c2
-rw-r--r--source3/lib/sharesec.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/account_pol.c b/source3/lib/account_pol.c
index 0694b1c3f8..6bf7346fe7 100644
--- a/source3/lib/account_pol.c
+++ b/source3/lib/account_pol.c
@@ -269,7 +269,7 @@ BOOL init_account_policy(void)
}
/* handle a Samba upgrade */
- tdb_lock_bystring(tdb, vstring,0);
+ tdb_lock_bystring(tdb, vstring);
if (!tdb_fetch_uint32(tdb, vstring, &version) || version != DATABASE_VERSION) {
tdb_store_uint32(tdb, vstring, DATABASE_VERSION);
diff --git a/source3/lib/gencache.c b/source3/lib/gencache.c
index 89badcd4f9..6725ed4c12 100644
--- a/source3/lib/gencache.c
+++ b/source3/lib/gencache.c
@@ -372,7 +372,7 @@ int gencache_lock_entry( const char *key )
if (!gencache_init())
return -1;
- return tdb_lock_bystring(cache, key, 0);
+ return tdb_lock_bystring(cache, key);
}
/********************************************************************
diff --git a/source3/lib/sharesec.c b/source3/lib/sharesec.c
index b98e304582..8105d5c37a 100644
--- a/source3/lib/sharesec.c
+++ b/source3/lib/sharesec.c
@@ -55,7 +55,7 @@ BOOL share_info_db_init(void)
}
/* handle a Samba upgrade */
- tdb_lock_bystring(share_tdb, vstring, 0);
+ tdb_lock_bystring(share_tdb, vstring);
/* Cope with byte-reversed older versions of the db. */
vers_id = tdb_fetch_int32(share_tdb, vstring);