mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
s4:torture: Remove trailing spaces from smbtorture.c
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
10e9b858a3
commit
a105595697
@ -1,19 +1,19 @@
|
|||||||
/*
|
/*
|
||||||
Unix SMB/CIFS implementation.
|
Unix SMB/CIFS implementation.
|
||||||
SMB torture tester
|
SMB torture tester
|
||||||
Copyright (C) Andrew Tridgell 1997-2003
|
Copyright (C) Andrew Tridgell 1997-2003
|
||||||
Copyright (C) Jelmer Vernooij 2006-2008
|
Copyright (C) Jelmer Vernooij 2006-2008
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 3 of the License, or
|
the Free Software Foundation; either version 3 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
@ -73,7 +73,7 @@ static void print_test_list(const struct torture_suite *suite, const char *prefi
|
|||||||
}
|
}
|
||||||
|
|
||||||
static bool run_matching(struct torture_context *torture,
|
static bool run_matching(struct torture_context *torture,
|
||||||
const char *prefix,
|
const char *prefix,
|
||||||
const char *expr,
|
const char *expr,
|
||||||
const char **restricted,
|
const char **restricted,
|
||||||
struct torture_suite *suite,
|
struct torture_suite *suite,
|
||||||
@ -450,7 +450,7 @@ int main(int argc, const char *argv[])
|
|||||||
"run async tests", NULL},
|
"run async tests", NULL},
|
||||||
{"num-async", 0, POPT_ARG_INT, &torture_numasync, 0,
|
{"num-async", 0, POPT_ARG_INT, &torture_numasync, 0,
|
||||||
"number of simultaneous async requests", NULL},
|
"number of simultaneous async requests", NULL},
|
||||||
{"maximum-runtime", 0, POPT_ARG_INT, &max_runtime, 0,
|
{"maximum-runtime", 0, POPT_ARG_INT, &max_runtime, 0,
|
||||||
"set maximum time for smbtorture to live", "seconds"},
|
"set maximum time for smbtorture to live", "seconds"},
|
||||||
{"extra-user", 0, POPT_ARG_STRING, NULL, OPT_EXTRA_USER,
|
{"extra-user", 0, POPT_ARG_STRING, NULL, OPT_EXTRA_USER,
|
||||||
"extra user credentials", NULL},
|
"extra user credentials", NULL},
|
||||||
@ -628,16 +628,16 @@ int main(int argc, const char *argv[])
|
|||||||
if (extra_module != NULL) {
|
if (extra_module != NULL) {
|
||||||
init_module_fn fn = load_module(poptGetOptArg(pc), false, NULL);
|
init_module_fn fn = load_module(poptGetOptArg(pc), false, NULL);
|
||||||
|
|
||||||
if (fn == NULL)
|
if (fn == NULL)
|
||||||
d_printf("Unable to load module from %s\n", poptGetOptArg(pc));
|
d_printf("Unable to load module from %s\n", poptGetOptArg(pc));
|
||||||
else {
|
else {
|
||||||
status = fn(mem_ctx);
|
status = fn(mem_ctx);
|
||||||
if (NT_STATUS_IS_ERR(status)) {
|
if (NT_STATUS_IS_ERR(status)) {
|
||||||
d_printf("Error initializing module %s: %s\n",
|
d_printf("Error initializing module %s: %s\n",
|
||||||
poptGetOptArg(pc), nt_errstr(status));
|
poptGetOptArg(pc), nt_errstr(status));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
torture_init(mem_ctx);
|
torture_init(mem_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -673,7 +673,7 @@ int main(int argc, const char *argv[])
|
|||||||
|
|
||||||
if (torture_seed == 0) {
|
if (torture_seed == 0) {
|
||||||
torture_seed = time(NULL);
|
torture_seed = time(NULL);
|
||||||
}
|
}
|
||||||
printf("Using seed %d\n", torture_seed);
|
printf("Using seed %d\n", torture_seed);
|
||||||
srandom(torture_seed);
|
srandom(torture_seed);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user