diff options
author | Volker Lendecke <vl@samba.org> | 2009-04-18 13:30:38 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-04-18 13:58:48 +0200 |
commit | fd558b37f601b5286f227a77aa593255d75c2484 (patch) | |
tree | 6e79babea58b9b84189e87fda487044c702d24d6 /source3 | |
parent | 81b18464be170528d5e1549868bcbddbbcd60e1e (diff) | |
download | samba-fd558b37f601b5286f227a77aa593255d75c2484.tar.gz samba-fd558b37f601b5286f227a77aa593255d75c2484.tar.bz2 samba-fd558b37f601b5286f227a77aa593255d75c2484.zip |
Add some const
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 3 | ||||
-rw-r--r-- | source3/rpc_server/srv_lsa_hnd.c | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index 07e04edc3b..6156a475a4 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -5878,7 +5878,8 @@ NTSTATUS evlog_convert_tdb_to_evt(TALLOC_CTX *mem_ctx, bool init_pipe_handle_list(pipes_struct *p, const struct ndr_syntax_id *syntax); bool create_policy_hnd(pipes_struct *p, struct policy_handle *hnd, void *data_ptr); -bool find_policy_by_hnd(pipes_struct *p, struct policy_handle *hnd, void **data_p); +bool find_policy_by_hnd(pipes_struct *p, const struct policy_handle *hnd, + void **data_p); bool close_policy_hnd(pipes_struct *p, struct policy_handle *hnd); void close_policy_by_pipe(pipes_struct *p); bool pipe_access_check(pipes_struct *p); diff --git a/source3/rpc_server/srv_lsa_hnd.c b/source3/rpc_server/srv_lsa_hnd.c index e853bb2047..f233376488 100644 --- a/source3/rpc_server/srv_lsa_hnd.c +++ b/source3/rpc_server/srv_lsa_hnd.c @@ -167,7 +167,9 @@ bool create_policy_hnd(pipes_struct *p, struct policy_handle *hnd, void *data_pt find policy by handle - internal version. ****************************************************************************/ -static struct policy *find_policy_by_hnd_internal(pipes_struct *p, struct policy_handle *hnd, void **data_p) +static struct policy *find_policy_by_hnd_internal(pipes_struct *p, + const struct policy_handle *hnd, + void **data_p) { struct policy *pol; size_t i; @@ -197,7 +199,8 @@ static struct policy *find_policy_by_hnd_internal(pipes_struct *p, struct policy find policy by handle ****************************************************************************/ -bool find_policy_by_hnd(pipes_struct *p, struct policy_handle *hnd, void **data_p) +bool find_policy_by_hnd(pipes_struct *p, const struct policy_handle *hnd, + void **data_p) { return find_policy_by_hnd_internal(p, hnd, data_p) == NULL ? False : True; } |