diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-05-22 09:25:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:52:47 -0500 |
commit | 42c1ef4025186066660b1bb187d063e07bb493ff (patch) | |
tree | bc5429b51710ad4dc7028d2eac51e2734bb8b8ba /source4/smb_server/smb | |
parent | 3527a578bae09430cd36ec5de3e29e82ce616c18 (diff) | |
download | samba-42c1ef4025186066660b1bb187d063e07bb493ff.tar.gz samba-42c1ef4025186066660b1bb187d063e07bb493ff.tar.bz2 samba-42c1ef4025186066660b1bb187d063e07bb493ff.zip |
r23067: use 'const union smb_search_data *file' also in the server code to get rid
of compiler warnings in the cifs backend
metze
(This used to be commit 34ef07b1f5acdad27edd80de8de4c6de7f879f9b)
Diffstat (limited to 'source4/smb_server/smb')
-rw-r--r-- | source4/smb_server/smb/search.c | 4 | ||||
-rw-r--r-- | source4/smb_server/smb/trans2.c | 4 |
2 files changed, 4 insertions, 4 deletions
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; |