summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-20 14:53:08 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-20 16:04:46 +1100
commit84d004737739df28ca220f0fbc56ad43a9ae7230 (patch)
treecca27814f6168825826bb5c9cb50a43cdaa4ca9c /source4/torture/rpc
parent8585cf1a78c3352ef6a0d3b3f32f9aacc28b609c (diff)
downloadsamba-84d004737739df28ca220f0fbc56ad43a9ae7230.tar.gz
samba-84d004737739df28ca220f0fbc56ad43a9ae7230.tar.bz2
samba-84d004737739df28ca220f0fbc56ad43a9ae7230.zip
s4-torture: ran minimal_includes.pl over source4/torture
This reduces compile time somewhat.
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/alter_context.c2
-rw-r--r--source4/torture/rpc/async_bind.c4
-rw-r--r--source4/torture/rpc/atsvc.c1
-rw-r--r--source4/torture/rpc/autoidl.c3
-rw-r--r--source4/torture/rpc/bench.c1
-rw-r--r--source4/torture/rpc/bind.c6
-rw-r--r--source4/torture/rpc/browser.c1
-rw-r--r--source4/torture/rpc/countcalls.c2
-rw-r--r--source4/torture/rpc/dfs.c3
-rw-r--r--source4/torture/rpc/drsuapi.c1
-rw-r--r--source4/torture/rpc/drsuapi_cracknames.c1
-rw-r--r--source4/torture/rpc/dssetup.c1
-rw-r--r--source4/torture/rpc/dssync.c4
-rw-r--r--source4/torture/rpc/echo.c1
-rw-r--r--source4/torture/rpc/epmapper.c1
-rw-r--r--source4/torture/rpc/eventlog.c2
-rw-r--r--source4/torture/rpc/frsapi.c2
-rw-r--r--source4/torture/rpc/handles.c1
-rw-r--r--source4/torture/rpc/initshutdown.c1
-rw-r--r--source4/torture/rpc/join.c2
-rw-r--r--source4/torture/rpc/lsa_lookup.c3
-rw-r--r--source4/torture/rpc/mgmt.c2
-rw-r--r--source4/torture/rpc/netlogon.c6
-rw-r--r--source4/torture/rpc/ntsvcs.c3
-rw-r--r--source4/torture/rpc/object_uuid.c3
-rw-r--r--source4/torture/rpc/oxidresolve.c1
-rw-r--r--source4/torture/rpc/remact.c1
-rw-r--r--source4/torture/rpc/remote_pac.c6
-rw-r--r--source4/torture/rpc/rpc.c2
-rw-r--r--source4/torture/rpc/samba3rpc.c11
-rw-r--r--source4/torture/rpc/samlogon.c2
-rw-r--r--source4/torture/rpc/samr_accessmask.c2
-rw-r--r--source4/torture/rpc/samsync.c3
-rw-r--r--source4/torture/rpc/scanner.c2
-rw-r--r--source4/torture/rpc/session_key.c1
-rw-r--r--source4/torture/rpc/spoolss_notify.c4
-rw-r--r--source4/torture/rpc/spoolss_win.c3
-rw-r--r--source4/torture/rpc/srvsvc.c2
-rw-r--r--source4/torture/rpc/svcctl.c1
-rw-r--r--source4/torture/rpc/testjoin.c2
-rw-r--r--source4/torture/rpc/unixinfo.c1
-rw-r--r--source4/torture/rpc/winreg.c1
42 files changed, 0 insertions, 102 deletions
diff --git a/source4/torture/rpc/alter_context.c b/source4/torture/rpc/alter_context.c
index 7843713074..cfd56f78e5 100644
--- a/source4/torture/rpc/alter_context.c
+++ b/source4/torture/rpc/alter_context.c
@@ -20,10 +20,8 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_lsa.h"
#include "librpc/gen_ndr/ndr_dssetup.h"
-#include "librpc/rpc/dcerpc.h"
#include "torture/rpc/rpc.h"
bool torture_rpc_alter_context(struct torture_context *torture)
diff --git a/source4/torture/rpc/async_bind.c b/source4/torture/rpc/async_bind.c
index 0ebbef1ce6..6669aa27c1 100644
--- a/source4/torture/rpc/async_bind.c
+++ b/source4/torture/rpc/async_bind.c
@@ -21,12 +21,8 @@
*/
#include "includes.h"
-#include "torture/torture.h"
-#include "lib/events/events.h"
-#include "libcli/composite/composite.h"
#include "librpc/gen_ndr/ndr_lsa.h"
#include "lib/cmdline/popt_common.h"
-#include "librpc/rpc/dcerpc.h"
#include "torture/rpc/rpc.h"
/*
diff --git a/source4/torture/rpc/atsvc.c b/source4/torture/rpc/atsvc.c
index 23d76ae502..5b35797f63 100644
--- a/source4/torture/rpc/atsvc.c
+++ b/source4/torture/rpc/atsvc.c
@@ -19,7 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_atsvc_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/autoidl.c b/source4/torture/rpc/autoidl.c
index 6345712133..1b53b781e6 100644
--- a/source4/torture/rpc/autoidl.c
+++ b/source4/torture/rpc/autoidl.c
@@ -20,12 +20,9 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_drsuapi_c.h"
-#include "librpc/gen_ndr/ndr_misc.h"
#include "librpc/ndr/ndr_table.h"
#include "torture/rpc/rpc.h"
-#include "librpc/rpc/dcerpc_proto.h"
#if 1
diff --git a/source4/torture/rpc/bench.c b/source4/torture/rpc/bench.c
index 6fa3815516..0c7477c454 100644
--- a/source4/torture/rpc/bench.c
+++ b/source4/torture/rpc/bench.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_srvsvc_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/bind.c b/source4/torture/rpc/bind.c
index 55c9d3686d..73978e4cec 100644
--- a/source4/torture/rpc/bind.c
+++ b/source4/torture/rpc/bind.c
@@ -21,15 +21,9 @@
*/
#include "includes.h"
-#include "torture/torture.h"
-#include "librpc/gen_ndr/ndr_lsa.h"
#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "lib/cmdline/popt_common.h"
-#include "librpc/rpc/dcerpc.h"
#include "torture/rpc/rpc.h"
-#include "libcli/libcli.h"
-#include "libcli/composite/composite.h"
-#include "libcli/smb_composite/smb_composite.h"
/*
This test is 'bogus' in that it doesn't actually perform to the
diff --git a/source4/torture/rpc/browser.c b/source4/torture/rpc/browser.c
index 32b552acc8..c9bb9d7ff0 100644
--- a/source4/torture/rpc/browser.c
+++ b/source4/torture/rpc/browser.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_browser_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/countcalls.c b/source4/torture/rpc/countcalls.c
index 4914ae1e50..3a4bbd99f0 100644
--- a/source4/torture/rpc/countcalls.c
+++ b/source4/torture/rpc/countcalls.c
@@ -21,12 +21,10 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/ndr/libndr.h"
#include "librpc/ndr/ndr_table.h"
#include "torture/rpc/rpc.h"
#include "param/param.h"
-#include "librpc/rpc/dcerpc_proto.h"
diff --git a/source4/torture/rpc/dfs.c b/source4/torture/rpc/dfs.c
index 3ba52e6f34..fca1c54fdb 100644
--- a/source4/torture/rpc/dfs.c
+++ b/source4/torture/rpc/dfs.c
@@ -20,12 +20,9 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_dfs_c.h"
-#include "librpc/gen_ndr/ndr_srvsvc_c.h"
#include "libnet/libnet.h"
-#include "libcli/raw/libcliraw.h"
#include "torture/util.h"
#include "libcli/libcli.h"
#include "lib/cmdline/popt_common.h"
diff --git a/source4/torture/rpc/drsuapi.c b/source4/torture/rpc/drsuapi.c
index 8f6bbb163b..5f23995c8c 100644
--- a/source4/torture/rpc/drsuapi.c
+++ b/source4/torture/rpc/drsuapi.c
@@ -22,7 +22,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_drsuapi_c.h"
#include "torture/rpc/rpc.h"
#include "param/param.h"
diff --git a/source4/torture/rpc/drsuapi_cracknames.c b/source4/torture/rpc/drsuapi_cracknames.c
index c14776b255..dad0d918ca 100644
--- a/source4/torture/rpc/drsuapi_cracknames.c
+++ b/source4/torture/rpc/drsuapi_cracknames.c
@@ -22,7 +22,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_drsuapi_c.h"
#include "torture/rpc/rpc.h"
#include "ldb/include/ldb.h"
diff --git a/source4/torture/rpc/dssetup.c b/source4/torture/rpc/dssetup.c
index aa5f12eb92..f52aa9fb90 100644
--- a/source4/torture/rpc/dssetup.c
+++ b/source4/torture/rpc/dssetup.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_dssetup_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index a9341d569b..50cae5aab7 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -28,11 +28,7 @@
#include "libcli/ldap/ldap_client.h"
#include "torture/torture.h"
#include "torture/ldap/proto.h"
-#include "libcli/auth/libcli_auth.h"
-#include "../lib/crypto/crypto.h"
#include "../libcli/drsuapi/drsuapi.h"
-#include "auth/credentials/credentials.h"
-#include "libcli/auth/libcli_auth.h"
#include "auth/gensec/gensec.h"
#include "param/param.h"
#include "dsdb/samdb/samdb.h"
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index 8696b99b24..4fd2694926 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -21,7 +21,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "torture/rpc/rpc.h"
#include "lib/events/events.h"
#include "librpc/gen_ndr/ndr_echo_c.h"
diff --git a/source4/torture/rpc/epmapper.c b/source4/torture/rpc/epmapper.c
index e99b3b1354..37a55d1523 100644
--- a/source4/torture/rpc/epmapper.c
+++ b/source4/torture/rpc/epmapper.c
@@ -19,7 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_epmapper_c.h"
#include "librpc/ndr/ndr_table.h"
#include "librpc/rpc/dcerpc_proto.h"
diff --git a/source4/torture/rpc/eventlog.c b/source4/torture/rpc/eventlog.c
index eac96adbf1..7a1eba8667 100644
--- a/source4/torture/rpc/eventlog.c
+++ b/source4/torture/rpc/eventlog.c
@@ -21,10 +21,8 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_eventlog.h"
#include "librpc/gen_ndr/ndr_eventlog_c.h"
-#include "librpc/gen_ndr/ndr_lsa.h"
#include "torture/rpc/rpc.h"
#include "param/param.h"
diff --git a/source4/torture/rpc/frsapi.c b/source4/torture/rpc/frsapi.c
index 24d769a310..78347775d0 100644
--- a/source4/torture/rpc/frsapi.c
+++ b/source4/torture/rpc/frsapi.c
@@ -20,10 +20,8 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_frsapi_c.h"
-#include "torture/util.h"
#include "param/param.h"
static bool test_GetDsPollingIntervalW(struct torture_context *tctx,
diff --git a/source4/torture/rpc/handles.c b/source4/torture/rpc/handles.c
index caca6b9e0a..bbd0415544 100644
--- a/source4/torture/rpc/handles.c
+++ b/source4/torture/rpc/handles.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "librpc/gen_ndr/ndr_drsuapi_c.h"
diff --git a/source4/torture/rpc/initshutdown.c b/source4/torture/rpc/initshutdown.c
index 149fae6c26..22ba3f2812 100644
--- a/source4/torture/rpc/initshutdown.c
+++ b/source4/torture/rpc/initshutdown.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_initshutdown_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/join.c b/source4/torture/rpc/join.c
index b0c122c1b6..1d08c60915 100644
--- a/source4/torture/rpc/join.c
+++ b/source4/torture/rpc/join.c
@@ -1,8 +1,6 @@
#include "includes.h"
-#include "libnet/libnet.h"
#include "libcli/libcli.h"
-#include "auth/credentials/credentials.h"
#include "torture/rpc/rpc.h"
#include "libcli/resolve/resolve.h"
diff --git a/source4/torture/rpc/lsa_lookup.c b/source4/torture/rpc/lsa_lookup.c
index b1a348ce8a..5f80117a68 100644
--- a/source4/torture/rpc/lsa_lookup.c
+++ b/source4/torture/rpc/lsa_lookup.c
@@ -19,9 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
-#include "lib/events/events.h"
-#include "libnet/libnet_join.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "libcli/security/security.h"
diff --git a/source4/torture/rpc/mgmt.c b/source4/torture/rpc/mgmt.c
index 7f618ab776..95c13c0ca6 100644
--- a/source4/torture/rpc/mgmt.c
+++ b/source4/torture/rpc/mgmt.c
@@ -19,13 +19,11 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_mgmt_c.h"
#include "auth/gensec/gensec.h"
#include "librpc/ndr/ndr_table.h"
#include "torture/rpc/rpc.h"
#include "param/param.h"
-#include "librpc/rpc/dcerpc_proto.h"
/*
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index f57c47b115..1ef58fd3f7 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -23,18 +23,12 @@
*/
#include "includes.h"
-#include "version.h"
-#include "torture/torture.h"
#include "lib/events/events.h"
-#include "auth/auth.h"
-#include "auth/gensec/gensec.h"
#include "lib/cmdline/popt_common.h"
#include "torture/rpc/rpc.h"
-#include "torture/rpc/netlogon.h"
#include "../lib/crypto/crypto.h"
#include "libcli/auth/libcli_auth.h"
#include "librpc/gen_ndr/ndr_netlogon_c.h"
-#include "librpc/gen_ndr/ndr_netlogon.h"
#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "param/param.h"
#include "libcli/security/security.h"
diff --git a/source4/torture/rpc/ntsvcs.c b/source4/torture/rpc/ntsvcs.c
index 04494b3223..d985244f98 100644
--- a/source4/torture/rpc/ntsvcs.c
+++ b/source4/torture/rpc/ntsvcs.c
@@ -20,11 +20,8 @@
*/
#include "includes.h"
-#include "lib/torture/torture.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_ntsvcs_c.h"
-#include "torture/util.h"
-#include "param/param.h"
static bool test_PNP_GetVersion(struct torture_context *tctx,
struct dcerpc_pipe *p)
diff --git a/source4/torture/rpc/object_uuid.c b/source4/torture/rpc/object_uuid.c
index 53d03a3ce9..43c8713452 100644
--- a/source4/torture/rpc/object_uuid.c
+++ b/source4/torture/rpc/object_uuid.c
@@ -20,11 +20,8 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_dssetup.h"
-#include "librpc/gen_ndr/ndr_dssetup_c.h"
#include "librpc/gen_ndr/ndr_lsa.h"
-#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "torture/rpc/rpc.h"
/*
diff --git a/source4/torture/rpc/oxidresolve.c b/source4/torture/rpc/oxidresolve.c
index 8e334f4539..0008d9d9db 100644
--- a/source4/torture/rpc/oxidresolve.c
+++ b/source4/torture/rpc/oxidresolve.c
@@ -19,7 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_oxidresolver_c.h"
#include "librpc/gen_ndr/ndr_remact_c.h"
#include "librpc/gen_ndr/epmapper.h"
diff --git a/source4/torture/rpc/remact.c b/source4/torture/rpc/remact.c
index 0c5ac09977..12132faa26 100644
--- a/source4/torture/rpc/remact.c
+++ b/source4/torture/rpc/remact.c
@@ -19,7 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_remact_c.h"
#include "librpc/gen_ndr/ndr_epmapper_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/remote_pac.c b/source4/torture/rpc/remote_pac.c
index cae98d9b6f..f51bdf518b 100644
--- a/source4/torture/rpc/remote_pac.c
+++ b/source4/torture/rpc/remote_pac.c
@@ -20,19 +20,13 @@
*/
#include "includes.h"
-#include "torture/torture.h"
-#include "lib/events/events.h"
#include "auth/auth.h"
#include "auth/gensec/gensec.h"
#include "lib/cmdline/popt_common.h"
#include "torture/rpc/rpc.h"
-#include "torture/rpc/netlogon.h"
#include "libcli/auth/libcli_auth.h"
#include "librpc/gen_ndr/ndr_netlogon_c.h"
-#include "librpc/gen_ndr/ndr_krb5pac.h"
#include "param/param.h"
-#include "lib/messaging/irpc.h"
-#include "cluster/cluster.h"
#define TEST_MACHINE_NAME "torturepactest"
diff --git a/source4/torture/rpc/rpc.c b/source4/torture/rpc/rpc.c
index 6e9d37b923..c8968503f5 100644
--- a/source4/torture/rpc/rpc.c
+++ b/source4/torture/rpc/rpc.c
@@ -19,9 +19,7 @@
*/
#include "includes.h"
-#include "auth/credentials/credentials.h"
#include "lib/cmdline/popt_common.h"
-#include "librpc/rpc/dcerpc.h"
#include "torture/rpc/rpc.h"
#include "torture/smbtorture.h"
#include "librpc/ndr/ndr_table.h"
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c
index 4a529d38f6..d439e1ff1d 100644
--- a/source4/torture/rpc/samba3rpc.c
+++ b/source4/torture/rpc/samba3rpc.c
@@ -23,32 +23,21 @@
#include "libcli/raw/libcliraw.h"
#include "libcli/raw/raw_proto.h"
#include "libcli/rap/rap.h"
-#include "torture/torture.h"
#include "torture/util.h"
#include "torture/rap/proto.h"
-#include "librpc/gen_ndr/ndr_lsa.h"
#include "librpc/gen_ndr/ndr_lsa_c.h"
-#include "librpc/gen_ndr/ndr_samr.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
-#include "librpc/gen_ndr/ndr_netlogon.h"
#include "librpc/gen_ndr/ndr_netlogon_c.h"
-#include "librpc/gen_ndr/ndr_srvsvc.h"
#include "librpc/gen_ndr/ndr_srvsvc_c.h"
-#include "librpc/gen_ndr/ndr_spoolss.h"
#include "librpc/gen_ndr/ndr_spoolss_c.h"
-#include "librpc/gen_ndr/ndr_winreg.h"
#include "librpc/gen_ndr/ndr_winreg_c.h"
-#include "librpc/gen_ndr/ndr_wkssvc.h"
#include "librpc/gen_ndr/ndr_wkssvc_c.h"
#include "lib/cmdline/popt_common.h"
-#include "librpc/rpc/dcerpc.h"
#include "torture/rpc/rpc.h"
#include "libcli/libcli.h"
-#include "libcli/composite/composite.h"
#include "libcli/smb_composite/smb_composite.h"
#include "libcli/auth/libcli_auth.h"
#include "../lib/crypto/crypto.h"
-#include "auth/ntlmssp/ntlmssp.h"
#include "libcli/security/security.h"
#include "param/param.h"
#include "lib/registry/registry.h"
diff --git a/source4/torture/rpc/samlogon.c b/source4/torture/rpc/samlogon.c
index 8e6c88425c..bdded6ce8c 100644
--- a/source4/torture/rpc/samlogon.c
+++ b/source4/torture/rpc/samlogon.c
@@ -25,11 +25,9 @@
#include "librpc/gen_ndr/ndr_netlogon.h"
#include "librpc/gen_ndr/ndr_netlogon_c.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
-#include "auth/auth.h"
#include "../lib/crypto/crypto.h"
#include "lib/cmdline/popt_common.h"
#include "torture/rpc/rpc.h"
-#include "../libcli/auth/schannel.h"
#include "auth/gensec/gensec.h"
#include "libcli/auth/libcli_auth.h"
#include "param/param.h"
diff --git a/source4/torture/rpc/samr_accessmask.c b/source4/torture/rpc/samr_accessmask.c
index 1af9fac672..ebfc069521 100644
--- a/source4/torture/rpc/samr_accessmask.c
+++ b/source4/torture/rpc/samr_accessmask.c
@@ -20,12 +20,10 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "torture/rpc/rpc.h"
#include "param/param.h"
#include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
/* test user created to test the ACLs associated to SAMR objects */
diff --git a/source4/torture/rpc/samsync.c b/source4/torture/rpc/samsync.c
index 3845b6cb44..52df4eb6b9 100644
--- a/source4/torture/rpc/samsync.c
+++ b/source4/torture/rpc/samsync.c
@@ -22,13 +22,10 @@
*/
#include "includes.h"
-#include "torture/torture.h"
-#include "auth/auth.h"
#include "../lib/util/dlinklist.h"
#include "../lib/crypto/crypto.h"
#include "system/time.h"
#include "torture/rpc/rpc.h"
-#include "../libcli/auth/schannel.h"
#include "auth/gensec/gensec.h"
#include "libcli/auth/libcli_auth.h"
#include "libcli/samsync/samsync.h"
diff --git a/source4/torture/rpc/scanner.c b/source4/torture/rpc/scanner.c
index 8e5016be6c..9acc789ee9 100644
--- a/source4/torture/rpc/scanner.c
+++ b/source4/torture/rpc/scanner.c
@@ -20,12 +20,10 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_mgmt_c.h"
#include "librpc/ndr/ndr_table.h"
#include "torture/rpc/rpc.h"
#include "param/param.h"
-#include "librpc/rpc/dcerpc_proto.h"
/*
work out how many calls there are for an interface
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c
index 1d3199944d..efedf7e7ef 100644
--- a/source4/torture/rpc/session_key.c
+++ b/source4/torture/rpc/session_key.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_lsa_c.h"
#include "libcli/auth/libcli_auth.h"
diff --git a/source4/torture/rpc/spoolss_notify.c b/source4/torture/rpc/spoolss_notify.c
index 60f1175f27..2dbed89019 100644
--- a/source4/torture/rpc/spoolss_notify.c
+++ b/source4/torture/rpc/spoolss_notify.c
@@ -21,17 +21,13 @@
#include "includes.h"
#include "system/filesys.h"
-#include "torture/torture.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_spoolss_c.h"
#include "rpc_server/dcerpc_server.h"
#include "rpc_server/service_rpc.h"
-#include "lib/events/events.h"
#include "smbd/process_model.h"
#include "smb_server/smb_server.h"
-#include "librpc/rpc/dcerpc_proto.h"
#include "lib/socket/netif.h"
-#include "../lib/util/dlinklist.h"
#include "ntvfs/ntvfs.h"
#include "param/param.h"
diff --git a/source4/torture/rpc/spoolss_win.c b/source4/torture/rpc/spoolss_win.c
index 719d8e26d2..2e8113991e 100644
--- a/source4/torture/rpc/spoolss_win.c
+++ b/source4/torture/rpc/spoolss_win.c
@@ -19,12 +19,9 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_spoolss_c.h"
-#include "rpc_server/dcerpc_server.h"
#include "ntvfs/ntvfs.h"
-#include "param/param.h"
struct test_spoolss_win_context {
/* EnumPrinters */
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index 82a8a67854..1e5b44c43f 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -19,8 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
-#include "librpc/gen_ndr/ndr_srvsvc.h"
#include "librpc/gen_ndr/ndr_srvsvc_c.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/svcctl.c b/source4/torture/rpc/svcctl.c
index ad27060659..ce6a0853ab 100644
--- a/source4/torture/rpc/svcctl.c
+++ b/source4/torture/rpc/svcctl.c
@@ -20,7 +20,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_svcctl_c.h"
#include "librpc/gen_ndr/ndr_svcctl.h"
#include "torture/rpc/rpc.h"
diff --git a/source4/torture/rpc/testjoin.c b/source4/torture/rpc/testjoin.c
index c93358015c..454912287e 100644
--- a/source4/torture/rpc/testjoin.c
+++ b/source4/torture/rpc/testjoin.c
@@ -25,12 +25,10 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "system/time.h"
#include "../lib/crypto/crypto.h"
#include "libnet/libnet.h"
#include "lib/cmdline/popt_common.h"
-#include "lib/ldb/include/ldb.h"
#include "librpc/gen_ndr/ndr_samr_c.h"
#include "libcli/auth/libcli_auth.h"
diff --git a/source4/torture/rpc/unixinfo.c b/source4/torture/rpc/unixinfo.c
index cbe8cf0ff1..6f18f24a6d 100644
--- a/source4/torture/rpc/unixinfo.c
+++ b/source4/torture/rpc/unixinfo.c
@@ -19,7 +19,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_unixinfo_c.h"
#include "libcli/security/security.h"
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index b85dac7bf1..93be45d25f 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -21,7 +21,6 @@
*/
#include "includes.h"
-#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_winreg_c.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "libcli/security/security.h"