Add some const
authorVolker Lendecke <vl@samba.org>
Sat, 18 Apr 2009 11:30:38 +0000 (13:30 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 18 Apr 2009 11:58:48 +0000 (13:58 +0200)
source3/include/proto.h
source3/rpc_server/srv_lsa_hnd.c

index 07e04edc3b27266098b6e735534bb0e76f1d50bc..6156a475a48c925801e15509f007450d120466d8 100644 (file)
@@ -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);
index e853bb204724940b2429d3950df2eb28ed7e1a19..f2333764885ad1ebd28fede7a8b6d750903ab367 100644 (file)
@@ -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;
 }