From aeee137f802462574aad1b90830dcd2264566e2e Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 29 Sep 2006 10:20:51 +0000 Subject: r18994: - torture_register_suite should be public - some whitespace cleanups metze (This used to be commit 49755f2224df7e4448853bbe493b6aeeac365cb2) --- source4/torture/torture.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source4') 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; -- cgit