summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-29 10:20:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:27 -0500
commitaeee137f802462574aad1b90830dcd2264566e2e (patch)
treeb32167ee089efc7589add51037d43433b7146080 /source4/torture/torture.c
parentbbafa2ce6bf052b7cf73a5c7f0da91c5954063db (diff)
downloadsamba-aeee137f802462574aad1b90830dcd2264566e2e.tar.gz
samba-aeee137f802462574aad1b90830dcd2264566e2e.tar.bz2
samba-aeee137f802462574aad1b90830dcd2264566e2e.zip
r18994: - torture_register_suite should be public
- some whitespace cleanups metze (This used to be commit 49755f2224df7e4448853bbe493b6aeeac365cb2)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index aa29051c7f..c332f2286a 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -37,7 +37,7 @@ _PUBLIC_ BOOL torture_showall = False;
struct torture_suite_list *torture_suites = NULL;
-NTSTATUS torture_register_suite(struct torture_suite *suite)
+_PUBLIC_ NTSTATUS torture_register_suite(struct torture_suite *suite)
{
struct torture_suite_list *p, *n;
@@ -67,8 +67,7 @@ NTSTATUS torture_register_suite(struct torture_suite *suite)
return NT_STATUS_OK;
}
-static BOOL wrap_old_torture_fn(struct torture_context *torture,
- const void *_fn)
+static BOOL wrap_old_torture_fn(struct torture_context *torture, const void *_fn)
{
BOOL (*fn)(struct torture_context *) = _fn;
return fn(torture);
@@ -81,9 +80,7 @@ _PUBLIC_ NTSTATUS register_torture_op(const char *name, BOOL (*fn)(struct tortur
struct torture_suite *suite;
suite = torture_suite_create(talloc_autofree_context(), name);
- torture_suite_add_simple_tcase(suite, name,
- wrap_old_torture_fn,
- fn);
+ torture_suite_add_simple_tcase(suite, name, wrap_old_torture_fn, fn);
torture_register_suite(suite);
return NT_STATUS_OK;