summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-07 22:34:46 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-07 16:42:02 -0600
commitf8b8d8ccd3841ba7768d80f9c4254ea8fc5b767f (patch)
tree767cb6c82fe24cc8de2ff6453555a1a0b452147f /source4/torture/torture.c
parent47f6bbf8cf5bdd03c72c59d00e3e1eab8895590e (diff)
downloadsamba-f8b8d8ccd3841ba7768d80f9c4254ea8fc5b767f.tar.gz
r26690: torture: Move torture_context_init() to the ui.c, where all functions related to it are.
(This used to be commit 5f6cc640758448df9c8ad4eba1ffa12ce0c3f732)
Diffstat (limited to 'source4/torture/torture.c')
-rw-r--r--source4/torture/torture.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index b471135ce11..23b8ee31436 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -23,9 +23,8 @@
#include "torture/torture.h"
#include "build.h"
#include "lib/util/dlinklist.h"
-#include "auth/credentials/credentials.h"
-#include "lib/cmdline/popt_common.h"
#include "param/param.h"
+#include "lib/cmdline/popt_common.h"
_PUBLIC_ int torture_numops=10;
_PUBLIC_ int torture_entries=1000;
@@ -46,21 +45,6 @@ bool torture_register_suite(struct torture_suite *suite)
return torture_suite_add_suite(torture_root, suite);
}
-struct torture_context *torture_context_init(TALLOC_CTX *mem_ctx,
- const struct torture_ui_ops *ui_ops)
-{
- struct torture_context *torture = talloc_zero(mem_ctx,
- struct torture_context);
- torture->ui_ops = ui_ops;
- torture->returncode = true;
- torture->ev = cli_credentials_get_event_context(cmdline_credentials);
-
- if (ui_ops->init)
- ui_ops->init(torture);
-
- return torture;
-}
-
int torture_init(void)
{