summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-01-03 12:58:31 +0100
committerVolker Lendecke <vl@samba.org>2010-01-03 21:14:58 +0100
commitac5b090a414e55eb91f8ee5521c1985eabaa4e03 (patch)
tree6d2850cd69f5293d0a0c2172c6d4e3c3c7c076b4 /source3/torture
parent675d5fe981cb44e94ebbf4885fea0e976d5c038f (diff)
downloadsamba-ac5b090a414e55eb91f8ee5521c1985eabaa4e03.tar.gz
samba-ac5b090a414e55eb91f8ee5521c1985eabaa4e03.tar.bz2
samba-ac5b090a414e55eb91f8ee5521c1985eabaa4e03.zip
s3: Fix a shadowed variable warning
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 755d22bc2d..c7a69ae403 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -5970,7 +5970,7 @@ static bool run_windows_write(int dummy)
int i;
bool ret = false;
const char *fname = "\\writetest.txt";
- struct timeval start;
+ struct timeval start_time;
double seconds;
double kbytes;
@@ -5986,7 +5986,7 @@ static bool run_windows_write(int dummy)
cli_sockopt(cli1, sockops);
- start = timeval_current();
+ start_time = timeval_current();
for (i=0; i<torture_numops; i++) {
char c = 0;
@@ -6008,7 +6008,7 @@ static bool run_windows_write(int dummy)
}
}
- seconds = timeval_elapsed(&start);
+ seconds = timeval_elapsed(&start_time);
kbytes = (double)torture_blocksize * torture_numops;
kbytes /= 1024;