s3: include ntdomain.h before including generated srv_ headers.
authorGünther Deschner <gd@samba.org>
Mon, 2 May 2011 11:21:53 +0000 (13:21 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 2 May 2011 13:03:44 +0000 (15:03 +0200)
Guenther

23 files changed:
source3/printing/spoolssd.c
source3/rpc_server/dfs/srv_dfs_nt.c
source3/rpc_server/dssetup/srv_dssetup_nt.c
source3/rpc_server/echo/srv_echo_nt.c
source3/rpc_server/epmapper/srv_epmapper.c
source3/rpc_server/epmd.c
source3/rpc_server/eventlog/srv_eventlog_nt.c
source3/rpc_server/initshutdown/srv_initshutdown_nt.c
source3/rpc_server/lsa/srv_lsa_nt.c
source3/rpc_server/netlogon/srv_netlog_nt.c
source3/rpc_server/ntsvcs/srv_ntsvcs_nt.c
source3/rpc_server/rpc_ep_setup.c
source3/rpc_server/rpc_server.c
source3/rpc_server/samr/srv_samr_nt.c
source3/rpc_server/spoolss/srv_spoolss_nt.c
source3/rpc_server/srvsvc/srv_srvsvc_nt.c
source3/rpc_server/svcctl/srv_svcctl_nt.c
source3/rpc_server/winreg/srv_winreg_nt.c
source3/rpc_server/wkssvc/srv_wkssvc_nt.c
source3/smbd/server_exit.c
source3/winbindd/winbindd.c
source3/winbindd/winbindd_dual_ndr.c
source3/winbindd/winbindd_dual_srv.c

index 4e63dc53c1a59c0efae83ca1c91ee80245cd980d..a6d8a0fe0ba4b6004c8f4859764acce0489d351e 100644 (file)
@@ -24,6 +24,7 @@
 #include "messages.h"
 #include "include/printing.h"
 #include "printing/nt_printing_migrate.h"
+#include "ntdomain.h"
 #include "librpc/gen_ndr/srv_winreg.h"
 #include "librpc/gen_ndr/srv_spoolss.h"
 #include "rpc_server/rpc_server.h"
index 45e9d9a6ff308978288cfa705e2a1a93ea805335..324af534c9bf3788085d59b9bdee86a2b7f21c2c 100644 (file)
 /* This is the implementation of the dfs pipe. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_dfs.h"
 #include "msdfs.h"
 #include "smbd/smbd.h"
 #include "auth.h"
-#include "ntdomain.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_MSDFS
index 73617df99f1f65dd57f6ca3edbede5efe73b5156..d90ad421371b95f4f7166eba9d00ba20f0aaa6f7 100644 (file)
@@ -23,9 +23,9 @@
  */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_dssetup.h"
 #include "secrets.h"
-#include "ntdomain.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index 7f27984b8bd038e10646782642c67fe2ecf636bc..c7a9e1a97daccc9223804828710f2333bc0678cb 100644 (file)
@@ -22,8 +22,8 @@
 /* This is the interface to the rpcecho pipe. */
 
 #include "includes.h"
-#include "../librpc/gen_ndr/srv_echo.h"
 #include "ntdomain.h"
+#include "../librpc/gen_ndr/srv_echo.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index d96fd1e929fab1c11b44b7858668025194340db7..14f42d6bc9bb099282ea54c92b42c45b879a630f 100644 (file)
 */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../libcli/security/security.h"
 #include "librpc/gen_ndr/ndr_epmapper.h"
 #include "librpc/gen_ndr/srv_epmapper.h"
 #include "srv_epmapper.h"
 #include "auth.h"
-#include "ntdomain.h"
 
 typedef uint32_t error_status_t;
 
index d11760c29b95864a921a9e9ed137fec0eac15949..04fdfb13bb9856bebc750c732a35ffd25e0c1016 100644 (file)
@@ -22,6 +22,7 @@
 #include "includes.h"
 
 #include "serverid.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_epmapper.h"
 #include "rpc_server/rpc_server.h"
 #include "rpc_server/epmapper/srv_epmapper.h"
index 2e1c1faa8c5fe849a8d8768eb744f5871761f5d0..c0d9499ac0996f76592850db333cf499e9d4bd52 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_eventlog.h"
 #include "lib/eventlog/eventlog.h"
 #include "registry.h"
@@ -30,7 +31,6 @@
 #include "rpc_client/cli_winreg.h"
 #include "smbd/smbd.h"
 #include "auth.h"
-#include "ntdomain.h"
 
 #undef  DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index 8644d95e7d0bf133a4cd6413764b7f1ff9892ff2..9b16d806096f4edfe21f4af0703cfc809a429061 100644 (file)
@@ -21,9 +21,9 @@
 /* Implementation of registry functions. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_initshutdown.h"
 #include "../librpc/gen_ndr/srv_winreg.h"
-#include "ntdomain.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index 9ea872b0276e859e0304560c1834058924211cb8..341bd5d424ff6492ae814082c5e4e85144e5c2ea 100644 (file)
@@ -30,6 +30,7 @@
 /* This is the implementation of the lsa server code. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_lsa.h"
 #include "secrets.h"
 #include "../librpc/gen_ndr/netlogon.h"
@@ -43,7 +44,6 @@
 #include "../librpc/gen_ndr/ndr_security.h"
 #include "passdb.h"
 #include "auth.h"
-#include "ntdomain.h"
 #include "lib/privileges.h"
 #include "rpc_server/srv_access_check.h"
 
index f0535c729533729dd597d292fa492084b389433a..5df59a5fc9fa6bbc231fba1206f5745cd71c6ffd 100644 (file)
@@ -25,6 +25,7 @@
 /* This is the implementation of the netlogon pipe. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../libcli/auth/schannel.h"
 #include "../librpc/gen_ndr/srv_netlogon.h"
 #include "../librpc/gen_ndr/srv_samr.h"
@@ -45,7 +46,6 @@
 #include "passdb.h"
 #include "auth.h"
 #include "messages.h"
-#include "ntdomain.h"
 
 extern userdom_struct current_user_info;
 
index af80254a0b26f9cd091d87ae72e1621db8757b02..0a00e00025582519ab80c94e479cedaff9ce97cd 100644 (file)
  */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_ntsvcs.h"
 #include "services/svc_winreg_glue.h"
 #include "../libcli/registry/util_reg.h"
-#include "ntdomain.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index f59f4b535ab93e60044c0ce83498f7cfb3362240..3cf5af8cbe1d33dd1223ce913623d48cd22c47be 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "includes.h"
+#include "ntdomain.h"
 
 #include "../librpc/gen_ndr/ndr_epmapper_c.h"
 #include "../librpc/gen_ndr/srv_epmapper.h"
index b66ce6de2749ccb91dbc53e6fe6eb4d1da9d4004..85b17ea3ca94524bd1f0f761544746cbece606b9 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "rpc_server/rpc_server.h"
 #include "rpc_dce.h"
 #include "librpc/gen_ndr/netlogon.h"
@@ -26,7 +27,6 @@
 #include "libcli/named_pipe_auth/npa_tstream.h"
 #include "../auth/auth_sam_reply.h"
 #include "auth.h"
-#include "ntdomain.h"
 #include "rpc_server/rpc_ncacn_np.h"
 #include "rpc_server/srv_pipe_hnd.h"
 
index 99dd3f4d585416a40cc6a875479c4d4e6918aa47..8ff097c2cf3ae6e2bf38ff8d9219c7eaa2d1dc40 100644 (file)
@@ -35,6 +35,7 @@
 #include "system/passwd.h"
 #include "smbd/globals.h"
 #include "../libcli/auth/libcli_auth.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_samr.h"
 #include "rpc_server/samr/srv_samr_util.h"
 #include "../lib/crypto/arcfour.h"
@@ -43,7 +44,6 @@
 #include "../libcli/security/security.h"
 #include "passdb.h"
 #include "auth.h"
-#include "ntdomain.h"
 #include "rpc_server/srv_access_check.h"
 
 #undef DBGC_CLASS
index e8db6063f80fd8369f90d1bd84d43f36f3d68137..02587cae0dd22b9b5b386195e411125d3532388b 100644 (file)
@@ -28,6 +28,7 @@
    up, all the errors returned are DOS errors, not NT status codes. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "nt_printing.h"
 #include "srv_spoolss_util.h"
 #include "../librpc/gen_ndr/srv_spoolss.h"
@@ -48,7 +49,6 @@
 #include "smbd/smbd.h"
 #include "auth.h"
 #include "messages.h"
-#include "ntdomain.h"
 #include "rpc_server/spoolss/srv_spoolss_nt.h"
 
 /* macros stolen from s4 spoolss server */
index 36f4c18226b82cb45d206316b6df250d4f947a0e..73dc2ed4f69d0c1ed32e9120cfbf46ef84e033d5 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "includes.h"
 #include "system/passwd.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_srvsvc.h"
 #include "../libcli/security/security.h"
 #include "../librpc/gen_ndr/ndr_security.h"
index 09e6c006d60591e121209b6aff04926bf0d65058..bf7ade8be6c2b3548c84519d491c0268aabfa268 100644 (file)
  */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_svcctl.h"
 #include "../libcli/security/security.h"
 #include "../librpc/gen_ndr/ndr_security.h"
 #include "services/services.h"
 #include "services/svc_winreg_glue.h"
 #include "auth.h"
-#include "ntdomain.h"
 #include "rpc_server/svcctl/srv_svcctl_nt.h"
 
 #undef DBGC_CLASS
index fedb665a30b589b34951de1fb77117a3985ae29e..1b3cab8844748324d806fd143d95740593c60586 100644 (file)
@@ -21,6 +21,7 @@
 /* Implementation of registry functions. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_winreg.h"
 #include "registry.h"
 #include "registry/reg_api.h"
@@ -28,7 +29,6 @@
 #include "registry/reg_perfcount.h"
 #include "rpc_misc.h"
 #include "auth.h"
-#include "ntdomain.h"
 #include "lib/privileges.h"
 
 #undef DBGC_CLASS
index d44414f7767acf9bfa2ffe2a09f92f1429c7cea9..cd257b4a26fa2f68196031b7f283cfa69cd49615 100644 (file)
@@ -23,6 +23,7 @@
 /* This is the implementation of the wks interface. */
 
 #include "includes.h"
+#include "ntdomain.h"
 #include "librpc/gen_ndr/libnet_join.h"
 #include "libnet/libnet_join.h"
 #include "../libcli/auth/libcli_auth.h"
@@ -31,7 +32,6 @@
 #include "session.h"
 #include "smbd/smbd.h"
 #include "auth.h"
-#include "ntdomain.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index 554affc9849e0703dabc86d99ab7dbf5efeb4b04..c7a318d891f5d02f7601df0e9f2ca79a5a5c5f11 100644 (file)
@@ -25,7 +25,7 @@
 #include "includes.h"
 #include "smbd/smbd.h"
 #include "smbd/globals.h"
-
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_dfs.h"
 #include "../librpc/gen_ndr/srv_dssetup.h"
 #include "../librpc/gen_ndr/srv_echo.h"
index 071b3ccdc945721508c426a49e6166a04fd85831..677f7661828c3ffbc1c247566b2eb6b08c68a5ee 100644 (file)
@@ -27,6 +27,7 @@
 #include "winbindd.h"
 #include "nsswitch/winbind_client.h"
 #include "nsswitch/wb_reqtrans.h"
+#include "ntdomain.h"
 #include "../librpc/gen_ndr/srv_lsa.h"
 #include "../librpc/gen_ndr/srv_samr.h"
 #include "secrets.h"
index 003d3cded7a3b519d94181d4d3fdc692e47241cc..fb89c3f27fda29cfa5ef09407742bc225e8bed8e 100644 (file)
@@ -29,8 +29,8 @@
 #include "includes.h"
 #include "winbindd/winbindd.h"
 #include "winbindd/winbindd_proto.h"
-#include "librpc/gen_ndr/srv_wbint.h"
 #include "ntdomain.h"
+#include "librpc/gen_ndr/srv_wbint.h"
 
 struct wbint_bh_state {
        struct winbindd_domain *domain;
index 230edae9080b3da88b1c3d69d54eec6b056961ee..f42682e5f81177befd74ab87d15f3804a8396583 100644 (file)
 #include "winbindd/winbindd.h"
 #include "winbindd/winbindd_proto.h"
 #include "rpc_client/cli_pipe.h"
+#include "ntdomain.h"
 #include "librpc/gen_ndr/srv_wbint.h"
 #include "../librpc/gen_ndr/ndr_netlogon_c.h"
 #include "idmap.h"
 #include "../libcli/security/security.h"
-#include "ntdomain.h"
 
 void _wbint_Ping(struct pipes_struct *p, struct wbint_Ping *r)
 {