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-56-open-during-transaction.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-56-open-during-transaction.c')
-rw-r--r-- | lib/tdb2/test/run-56-open-during-transaction.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tdb2/test/run-56-open-during-transaction.c b/lib/tdb2/test/run-56-open-during-transaction.c index d2115f63cb..1ac970119f 100644 --- a/lib/tdb2/test/run-56-open-during-transaction.c +++ b/lib/tdb2/test/run-56-open-during-transaction.c @@ -44,14 +44,14 @@ static bool is_same(const char *snapshot, const char *latest, off_t len) static bool compare_file(int fd, const char *snapshot, off_t snapshot_len) { char *contents; - bool same; + bool ret; /* over-length read serves as length check. */ contents = malloc(snapshot_len+1); - same = pread(fd, contents, snapshot_len+1, 0) == snapshot_len + ret = pread(fd, contents, snapshot_len+1, 0) == snapshot_len && is_same(snapshot, contents, snapshot_len); free(contents); - return same; + return ret; } static void check_file_intact(int fd) |