From 4ea9f8d4c0d08343910d85f44eebdd2d7bff6571 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 22 Mar 2012 10:47:27 +1030 Subject: lib/tdb2: fix -Wshadow warnings. These warnings clutter things up, even though they're of marginal utility. Signed-off-by: Rusty Russell --- lib/tdb2/test/run-15-append.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/tdb2/test/run-15-append.c') diff --git a/lib/tdb2/test/run-15-append.c b/lib/tdb2/test/run-15-append.c index 53fe66bcf7..8102d3967d 100644 --- a/lib/tdb2/test/run-15-append.c +++ b/lib/tdb2/test/run-15-append.c @@ -9,7 +9,7 @@ static tdb_off_t tdb_offset(struct tdb_context *tdb, struct tdb_data key) { tdb_off_t off; - struct tdb_used_record rec; + struct tdb_used_record urec; struct hash_info h; if (tdb_get_flags(tdb) & TDB_VERSION1) { @@ -18,7 +18,7 @@ static tdb_off_t tdb_offset(struct tdb_context *tdb, struct tdb_data key) &rec); } - off = find_and_lock(tdb, key, F_RDLCK, &h, &rec, NULL); + off = find_and_lock(tdb, key, F_RDLCK, &h, &urec, NULL); if (TDB_OFF_IS_ERR(off)) return 0; tdb_unlock_hashes(tdb, h.hlock_start, h.hlock_range, F_RDLCK); -- cgit