r18994: - torture_register_suite should be public
authorStefan Metzmacher <metze@samba.org>
Fri, 29 Sep 2006 10:20:51 +0000 (10:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:20:27 +0000 (14:20 -0500)
- some whitespace cleanups

metze
(This used to be commit 49755f2224df7e4448853bbe493b6aeeac365cb2)

source4/torture/torture.c

index aa29051c7f1fd05ea999bc8ff1f6204718c4f96e..c332f2286a06238eae9edc0ad16cc1ce3fbb200e 100644 (file)
@@ -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;