summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/smb.h10
-rw-r--r--source3/smbd/fileio.c8
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);
/****************************************************************************