summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-20 18:59:51 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-20 18:59:51 +0200
commit87ec1d2532eb17dfd7f98431bdfa4071be57f683 (patch)
tree7543ac112a660083d05c1b4734ffb7fdc169d656 /source4/torture
parent01a902f59978cebdab22aaee7d9e0c9bb78bc649 (diff)
downloadsamba-87ec1d2532eb17dfd7f98431bdfa4071be57f683.tar.gz
samba-87ec1d2532eb17dfd7f98431bdfa4071be57f683.tar.bz2
samba-87ec1d2532eb17dfd7f98431bdfa4071be57f683.zip
Make sure prototypes are always included, make some functions static and
remove some unused functions.
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/libnet/utils.c1
-rw-r--r--source4/torture/smbtorture.c2
-rw-r--r--source4/torture/torture.c1
3 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/libnet/utils.c b/source4/torture/libnet/utils.c
index d4124cc823..4a55eaa56c 100644
--- a/source4/torture/libnet/utils.c
+++ b/source4/torture/libnet/utils.c
@@ -27,6 +27,7 @@
#include "libnet/libnet.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "param/param.h"
+#include "torture/libnet/utils.h"
bool test_opendomain(struct torture_context *tctx,
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 302fefcc88..8d195f1253 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -474,7 +474,7 @@ const static struct torture_ui_ops quiet_ui_ops = {
.test_result = quiet_test_result
};
-void run_shell(struct torture_context *tctx)
+static void run_shell(struct torture_context *tctx)
{
char *cline;
int argc;
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index 6c49cf01cd..dc98c2cc9a 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -24,6 +24,7 @@
#include "../lib/util/dlinklist.h"
#include "param/param.h"
#include "lib/cmdline/popt_common.h"
+#include "torture/smbtorture.h"
_PUBLIC_ int torture_numops=10;
_PUBLIC_ int torture_entries=1000;