diff options
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/blob.c | 2 | ||||
-rw-r--r-- | source4/smb_server/smb/search.c | 4 | ||||
-rw-r--r-- | source4/smb_server/smb/trans2.c | 4 | ||||
-rw-r--r-- | source4/smb_server/smb2/find.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/source4/smb_server/blob.c b/source4/smb_server/blob.c index 0b38d3901d..b28fcc4051 100644 --- a/source4/smb_server/blob.c +++ b/source4/smb_server/blob.c @@ -604,7 +604,7 @@ NTSTATUS smbsrv_pull_passthru_sfileinfo(TALLOC_CTX *mem_ctx, NTSTATUS smbsrv_push_passthru_search(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, enum smb_search_data_level level, - union smb_search_data *file, + const union smb_search_data *file, int default_str_flags) { uint8_t *data; diff --git a/source4/smb_server/smb/search.c b/source4/smb_server/smb/search.c index cc6d866ac7..594dfa5385 100644 --- a/source4/smb_server/smb/search.c +++ b/source4/smb_server/smb/search.c @@ -39,7 +39,7 @@ struct search_state { fill a single entry in a search find reply */ static BOOL find_fill_info(struct smbsrv_request *req, - union smb_search_data *file) + const union smb_search_data *file) { uint8_t *p; @@ -66,7 +66,7 @@ static BOOL find_fill_info(struct smbsrv_request *req, } /* callback function for search first/next */ -static BOOL find_callback(void *private, union smb_search_data *file) +static BOOL find_callback(void *private, const union smb_search_data *file) { struct search_state *state = (struct search_state *)private; diff --git a/source4/smb_server/smb/trans2.c b/source4/smb_server/smb/trans2.c index 1f34dfa4b4..4a99637b61 100644 --- a/source4/smb_server/smb/trans2.c +++ b/source4/smb_server/smb/trans2.c @@ -695,7 +695,7 @@ struct find_state { fill a single entry in a trans2 find reply */ static NTSTATUS find_fill_info(struct find_state *state, - union smb_search_data *file) + const union smb_search_data *file) { struct smbsrv_request *req = state->op->req; struct smb_trans2 *trans = state->op->trans; @@ -791,7 +791,7 @@ static NTSTATUS find_fill_info(struct find_state *state, } /* callback function for trans2 findfirst/findnext */ -static BOOL find_callback(void *private, union smb_search_data *file) +static BOOL find_callback(void *private, const union smb_search_data *file) { struct find_state *state = talloc_get_type(private, struct find_state); struct smb_trans2 *trans = state->op->trans; diff --git a/source4/smb_server/smb2/find.c b/source4/smb_server/smb2/find.c index 428d13366a..03e03e15f1 100644 --- a/source4/smb_server/smb2/find.c +++ b/source4/smb_server/smb2/find.c @@ -41,7 +41,7 @@ struct smb2srv_find_state { }; /* callback function for SMB2 Find */ -static BOOL smb2srv_find_callback(void *private, union smb_search_data *file) +static BOOL smb2srv_find_callback(void *private, const union smb_search_data *file) { struct smb2srv_find_state *state = talloc_get_type(private, struct smb2srv_find_state); struct smb2_find *info = state->info; |