summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-20 17:35:25 +0100
committerVolker Lendecke <vl@samba.org>2008-01-20 17:44:40 +0100
commit33f3eeaa00974860dfc45962d5fd34cf05396c76 (patch)
treed826c4af466796b6adf665a6e6d66597aee50131 /source3/lib
parentb1017bb551fd28d2f9562acb1ff7f0dde933417a (diff)
downloadsamba-33f3eeaa00974860dfc45962d5fd34cf05396c76.tar.gz
samba-33f3eeaa00974860dfc45962d5fd34cf05396c76.tar.bz2
samba-33f3eeaa00974860dfc45962d5fd34cf05396c76.zip
Fix some "set but never used" warnings
(This used to be commit 4a6dadc5178f4861e9c032321939db3b639734b5)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_tdb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/dbwrap_tdb.c b/source3/lib/dbwrap_tdb.c
index e87ceb428f..18f9495931 100644
--- a/source3/lib/dbwrap_tdb.c
+++ b/source3/lib/dbwrap_tdb.c
@@ -91,7 +91,6 @@ static struct db_record *db_tdb_fetch_locked(struct db_context *db,
struct db_tdb_ctx *ctx = talloc_get_type_abort(db->private_data,
struct db_tdb_ctx);
struct tdb_fetch_locked_state state;
- int res;
/* Do not accidently allocate/deallocate w/o need when debug level is lower than needed */
if(DEBUGLEVEL >= 10) {
@@ -110,8 +109,7 @@ static struct db_record *db_tdb_fetch_locked(struct db_context *db,
state.mem_ctx = mem_ctx;
state.result = NULL;
- res = tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetchlock_parse,
- &state);
+ tdb_parse_record(ctx->wtdb->tdb, key, db_tdb_fetchlock_parse, &state);
if (state.result == NULL) {
db_tdb_fetchlock_parse(key, tdb_null, &state);