summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-03-13 02:20:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:03 -0500
commit03cd26e353b74d88b02ce36dc73932452a7b3715 (patch)
tree7b0d6ef064749f26df19b302964b0259a10eb35c /source4/lib/tdb/common
parent639edc4097d1d5f011ce642b97b522ac4cb8b4ae (diff)
downloadsamba-03cd26e353b74d88b02ce36dc73932452a7b3715.tar.gz
samba-03cd26e353b74d88b02ce36dc73932452a7b3715.tar.bz2
samba-03cd26e353b74d88b02ce36dc73932452a7b3715.zip
r5780: Remove unused arguments.
(This used to be commit 1ee84e373e2b44c96f9353f194b766d6a144e7ce)
Diffstat (limited to 'source4/lib/tdb/common')
-rw-r--r--source4/lib/tdb/common/tdbutil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/lib/tdb/common/tdbutil.c b/source4/lib/tdb/common/tdbutil.c
index 3f9b227591..df9ce4e238 100644
--- a/source4/lib/tdb/common/tdbutil.c
+++ b/source4/lib/tdb/common/tdbutil.c
@@ -42,10 +42,10 @@ static TDB_DATA make_tdb_data(const char *dptr, size_t dsize)
}
/****************************************************************************
- Lock a chain by string. Return -1 if timeout or lock failed.
+ Lock a chain by string. Return -1 if lock failed.
****************************************************************************/
-int tdb_lock_bystring(TDB_CONTEXT *tdb, const char *keyval, uint_t timeout)
+int tdb_lock_bystring(TDB_CONTEXT *tdb, const char *keyval)
{
TDB_DATA key = make_tdb_data(keyval, strlen(keyval)+1);
@@ -64,10 +64,10 @@ void tdb_unlock_bystring(TDB_CONTEXT *tdb, const char *keyval)
}
/****************************************************************************
- Read lock a chain by string. Return -1 if timeout or lock failed.
+ Read lock a chain by string. Return -1 if lock failed.
****************************************************************************/
-int tdb_read_lock_bystring(TDB_CONTEXT *tdb, const char *keyval, uint_t timeout)
+int tdb_read_lock_bystring(TDB_CONTEXT *tdb, const char *keyval)
{
TDB_DATA key = make_tdb_data(keyval, strlen(keyval)+1);
@@ -252,7 +252,7 @@ int32_t tdb_change_int32_atomic(TDB_CONTEXT *tdb, const char *keystr, int32_t *o
int32_t val;
int32_t ret = -1;
- if (tdb_lock_bystring(tdb, keystr,0) == -1)
+ if (tdb_lock_bystring(tdb, keystr) == -1)
return -1;
if ((val = tdb_fetch_int32(tdb, keystr)) == -1) {
@@ -293,7 +293,7 @@ BOOL tdb_change_uint32_atomic(TDB_CONTEXT *tdb, const char *keystr, uint32_t *ol
uint32_t val;
BOOL ret = False;
- if (tdb_lock_bystring(tdb, keystr,0) == -1)
+ if (tdb_lock_bystring(tdb, keystr) == -1)
return False;
if (!tdb_fetch_uint32(tdb, keystr, &val)) {