From de10237719db8101cd9487b257761d4721f857ab Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Aug 2003 18:54:44 +0000 Subject: more fixes from the IRIX compiler (thanks herb!) (This used to be commit 02d068ba7d81d6db25122144981c63f74ad44025) --- source4/torture/torture.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'source4/torture/torture.c') diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 1ec73e0dff..c928846f1f 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -31,7 +31,6 @@ static BOOL use_oplocks; static BOOL use_level_II_oplocks; static const char *client_txt = "client_oplocks.txt"; static BOOL use_kerberos; -static BOOL bypass_io; BOOL torture_showall = False; @@ -4050,7 +4049,6 @@ static void usage(void) { int opt, i; char *p; - int gotuser = 0; BOOL correct = True; char *host, *share, *username; @@ -4097,7 +4095,7 @@ static void usage(void) srandom(time(NULL)); - while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:e:m:Ld:Ac:ks:f:bs:")) != EOF) { + while ((opt = getopt(argc, argv, "p:hW:U:n:N:O:o:e:m:Ld:Ac:ks:f:s:")) != EOF) { switch (opt) { case 'p': lp_set_cmdline("smb ports", optarg); @@ -4148,16 +4146,12 @@ static void usage(void) #endif break; case 'U': - gotuser = 1; parse_user(optarg); break; case 'f': torture_failures = atoi(optarg); break; - case 'b': - bypass_io = True; - break; - + default: printf("Unknown option %c (%d)\n", (char)opt, opt); usage(); -- cgit