From 89c68c1bc3624e756533c9d16794402c29d71321 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 20 Aug 2002 17:58:09 +0000 Subject: Remove unused variables (This used to be commit 20f1765c32b2dd048e1572cd1b1e490459f7d5dc) --- source3/torture/vfstest.c | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'source3') diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c index b8773d5785..0cdff84ed4 100644 --- a/source3/torture/vfstest.c +++ b/source3/torture/vfstest.c @@ -207,7 +207,8 @@ static NTSTATUS cmd_freemem(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc talloc_destroy(global_ctx); global_ctx = NULL; vfs->data = NULL; - vfs->data_size = NULL; + vfs->data_size = 0; + return NT_STATUS_OK; } static NTSTATUS cmd_quit(struct vfs_state *vfs, TALLOC_CTX *mem_ctx, int argc, char **argv) @@ -420,27 +421,13 @@ static void usage(void) int main(int argc, char *argv[]) { - extern pstring global_myname; - static int got_pass = 0; BOOL interactive = True; int opt; - int olddebug; static char *cmdstr = ""; - const char *server; - struct cli_state *cli; - fstring password="", - username="", - domain=""; - static char *opt_authfile=NULL, - *opt_username=NULL, - *opt_domain=NULL, - *opt_configfile=NULL, - *opt_logfile=NULL; + static char *opt_logfile=NULL; static int opt_debuglevel; pstring logfile; struct cmd_set **cmd_set; - struct in_addr server_ip; - NTSTATUS nt_status; extern BOOL AllowDebugChange; static struct vfs_state vfs; int i; -- cgit