diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-22 10:47:27 +1030 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-03-22 01:57:38 +0100 |
commit | 4ea9f8d4c0d08343910d85f44eebdd2d7bff6571 (patch) | |
tree | 655d33a3a9350b1217ed1d3ef0b0edbd43034dc4 /lib/tdb2/test/run-15-append.c | |
parent | a93e03d27de573988263aa4e39e55e7edbe34069 (diff) | |
download | samba-4ea9f8d4c0d08343910d85f44eebdd2d7bff6571.tar.gz samba-4ea9f8d4c0d08343910d85f44eebdd2d7bff6571.tar.bz2 samba-4ea9f8d4c0d08343910d85f44eebdd2d7bff6571.zip |
lib/tdb2: fix -Wshadow warnings.
These warnings clutter things up, even though they're of marginal
utility.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb2/test/run-15-append.c')
-rw-r--r-- | lib/tdb2/test/run-15-append.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |