summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-12-23 23:22:57 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-12-23 23:22:57 +0100
commitdcc4081f75f0d0c51878385477f7738f49a761dd (patch)
tree45a738b1d23c7e5bd3e415e4d74594fd7dc7732a /source4/torture/raw
parent8df6af213a0ca9a70e30c630970b5e2d2debe821 (diff)
downloadsamba-dcc4081f75f0d0c51878385477f7738f49a761dd.tar.gz
samba-dcc4081f75f0d0c51878385477f7738f49a761dd.tar.bz2
samba-dcc4081f75f0d0c51878385477f7738f49a761dd.zip
Fix more compiler warnings.
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/lookuprate.c2
-rw-r--r--source4/torture/raw/tconrate.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/raw/lookuprate.c b/source4/torture/raw/lookuprate.c
index f7ba004ae5..e4caf7b1be 100644
--- a/source4/torture/raw/lookuprate.c
+++ b/source4/torture/raw/lookuprate.c
@@ -237,7 +237,7 @@ bool torture_bench_lookup(struct torture_context *torture)
NTSTATUS status;
bool result = false;
- int i, tries;
+ int i;
struct smbcli_state *cli = NULL;
if (!torture_open_connection(&cli, torture, 0)) {
diff --git a/source4/torture/raw/tconrate.c b/source4/torture/raw/tconrate.c
index 0109b65481..076e5be31f 100644
--- a/source4/torture/raw/tconrate.c
+++ b/source4/torture/raw/tconrate.c
@@ -29,7 +29,6 @@
#define TIME_LIMIT_SECS 30
#define usec_to_sec(s) ((s) / 1000000)
-#define sec_to_usec(s) ((s) * 1000000)
/* Map a shared memory buffer of at least nelem counters. */
static void * map_count_buffer(unsigned nelem, size_t elemsz)