s3:smbd: make typedef write_cache private to fileio.c
authorStefan Metzmacher <metze@samba.org>
Mon, 4 Jun 2012 12:46:31 +0000 (14:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 6 Jun 2012 08:18:36 +0000 (10:18 +0200)
metze

source3/include/smb.h
source3/smbd/fileio.c

index 9a63d8252f7c0e46566cc057944cd21d1c2faa5d..e6710ca769d99f97b80e33adb8ac90f0f822c047 100644 (file)
@@ -127,14 +127,6 @@ typedef union unid_t {
 
 #include "librpc/gen_ndr/security.h"
 
-typedef struct write_cache {
-       off_t file_size;
-       off_t offset;
-       size_t alloc_size;
-       size_t data_size;
-       char *data;
-} write_cache;
-
 struct fd_handle {
        size_t ref_count;
        int fd;
@@ -230,7 +222,7 @@ typedef struct files_struct {
        uint64_t initial_allocation_size; /* Faked up initial allocation on disk. */
        uint16 file_pid;
        uint16 vuid;
-       write_cache *wcp;
+       struct write_cache *wcp;
        struct timeval open_time;
        uint32 access_mask;             /* NTCreateX access bits (FILE_READ_DATA etc.) */
        uint32 share_access;            /* NTCreateX share constants (FILE_SHARE_READ|FILE_SHARE_WRITE|FILE_SHARE_DELETE). */
index 8bdb66bcfeb4b3f65f14c3723a9ba88522f4f139..991cb4783d11f8f864aee547c4b40f477f096d5d 100644 (file)
 #include "smbd/globals.h"
 #include "smbprofile.h"
 
+typedef struct write_cache {
+       off_t file_size;
+       off_t offset;
+       size_t alloc_size;
+       size_t data_size;
+       char *data;
+} write_cache;
+
 static bool setup_write_cache(files_struct *, off_t);
 
 /****************************************************************************