diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-06-04 14:46:31 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-06-06 10:18:36 +0200 |
commit | 4a91321f3a5d051bff64d3fefce0fc9b576ff3bd (patch) | |
tree | 0ef7b6cd6558b70be00d9cab215c3320c7459adf | |
parent | 01b726dbe8b3f9c65a24aac0436352650cd9d3aa (diff) | |
download | samba-4a91321f3a5d051bff64d3fefce0fc9b576ff3bd.tar.gz samba-4a91321f3a5d051bff64d3fefce0fc9b576ff3bd.tar.bz2 samba-4a91321f3a5d051bff64d3fefce0fc9b576ff3bd.zip |
s3:smbd: make typedef write_cache private to fileio.c
metze
-rw-r--r-- | source3/include/smb.h | 10 | ||||
-rw-r--r-- | source3/smbd/fileio.c | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h index 9a63d8252f..e6710ca769 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -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). */ diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index 8bdb66bcfe..991cb4783d 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -25,6 +25,14 @@ #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); /**************************************************************************** |