s3-build: only include "fake_file.h" where needed.
authorGünther Deschner <gd@samba.org>
Wed, 18 Aug 2010 14:44:47 +0000 (16:44 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 25 Aug 2010 22:20:28 +0000 (00:20 +0200)
Guenther

source3/include/smb.h
source3/libsmb/cliquota.c
source3/rpc_server/srv_pipe_hnd.c
source3/smbd/fake_file.c
source3/smbd/filename.c
source3/smbd/nttrans.c
source3/smbd/open.c
source3/smbd/reply.c
source3/utils/smbcquotas.c

index ab1b4b2d9a7bd7b0d169b010b6e33a3d517da2b6..e43981748b2642ba6e411587eb44ca8bc9f47bf8 100644 (file)
@@ -255,8 +255,6 @@ typedef struct write_cache {
        char *data;
 } write_cache;
 
-#include "fake_file.h"
-
 struct fd_handle {
        size_t ref_count;
        int fd;
index 6642cf0f930dbb576a389562fe5742b91db3adec..59c06ace7939ba219c958e8505889c39433692c6 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "includes.h"
 #include "../librpc/gen_ndr/ndr_security.h"
+#include "fake_file.h"
 
 NTSTATUS cli_get_quota_handle(struct cli_state *cli, uint16_t *quota_fnum)
 {
index 4c6e65173e96efb7832b39ad5fd543d622882446..70758ecbddf0005ada9b2469fb1b400e06feaf99 100644 (file)
@@ -25,6 +25,7 @@
 #include "../libcli/named_pipe_auth/npa_tstream.h"
 #include "rpc_server.h"
 #include "smbd/globals.h"
+#include "fake_file.h"
 
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
index 9a6931f4e365b20d185e9115e488c484ad7ee018..d844261efb7706df2bc77eb2c9cb2d60ab562ee6 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "includes.h"
+#include "fake_file.h"
 
 struct fake_file_type {
        const char *name;
index 154d34a4c06c41754669dee8cec35c6d21ca04fc..8f9b8558c12974d57c7d9a065f2576898a682308 100644 (file)
@@ -25,6 +25,7 @@
  */
 
 #include "includes.h"
+#include "fake_file.h"
 
 static NTSTATUS build_stream_path(TALLOC_CTX *mem_ctx,
                                  connection_struct *conn,
index 965d2791836aa2a0edd4a41e9aea44ac96ba8355..78774dc1b08e2d5667e6140add532f4813a75263 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "includes.h"
 #include "smbd/globals.h"
+#include "fake_file.h"
 #include "../librpc/gen_ndr/ndr_security.h"
 
 extern const struct generic_mapping file_generic_mapping;
index ba1fbf227c7565a68ea0ff5a78dda4ad428f0e1e..2009d2ab1569529ca53b83cc32d225a68d33292f 100644 (file)
@@ -22,6 +22,7 @@
 #include "includes.h"
 #include "printing.h"
 #include "smbd/globals.h"
+#include "fake_file.h"
 #include "librpc/gen_ndr/messaging.h"
 #include "../librpc/gen_ndr/ndr_security.h"
 
index 0775b398d5b77960413f83835fc6e85ab95af337..5533ee07d1edb338383e76bf54701696f6b107a9 100644 (file)
@@ -27,6 +27,7 @@
 #include "includes.h"
 #include "printing.h"
 #include "smbd/globals.h"
+#include "fake_file.h"
 #include "../librpc/gen_ndr/cli_spoolss.h"
 #include "rpc_client/cli_spoolss.h"
 #include "rpc_client/init_spoolss.h"
index f575872b0dc0352f4a9970f44b7c54c4a14532a9..f473808886c5590908b30baed4326ac6dab0bc98 100644 (file)
@@ -25,6 +25,7 @@
 #include "popt_common.h"
 #include "../librpc/gen_ndr/ndr_lsa.h"
 #include "rpc_client/cli_lsarpc.h"
+#include "fake_file.h"
 
 static char *server;