diff options
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); |