Author: metze Date: 2006-09-29 10:20:51 +0000 (Fri, 29 Sep 2006) New Revision: 18994
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18994 Log: - torture_register_suite should be public - some whitespace cleanups metze Modified: branches/SAMBA_4_0/source/torture/torture.c Changeset: Modified: branches/SAMBA_4_0/source/torture/torture.c =================================================================== --- branches/SAMBA_4_0/source/torture/torture.c 2006-09-29 09:48:46 UTC (rev 18993) +++ branches/SAMBA_4_0/source/torture/torture.c 2006-09-29 10:20:51 UTC (rev 18994) @@ -37,7 +37,7 @@ 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 @@ 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 @@ 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;
