s4:rpc_server: add some const to dcesrv_handle_fetch()
authorStefan Metzmacher <metze@samba.org>
Thu, 8 Nov 2018 11:14:05 +0000 (12:14 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 12 Jan 2019 02:13:34 +0000 (03:13 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7113
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11892

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/rpc_server/dcerpc_server.h
source4/rpc_server/handles.c

index bba8b42..39492f6 100644 (file)
@@ -432,7 +432,7 @@ struct dcesrv_handle *dcesrv_handle_new(struct dcesrv_connection_context *contex
 
 struct dcesrv_handle *dcesrv_handle_fetch(
                                          struct dcesrv_connection_context *context, 
-                                         struct policy_handle *p,
+                                         const struct policy_handle *p,
                                          uint8_t handle_type);
 
 const struct tsocket_address *dcesrv_connection_get_local_address(struct dcesrv_connection *conn);
index af49f4c..b2b9962 100644 (file)
@@ -79,7 +79,7 @@ _PUBLIC_ struct dcesrv_handle *dcesrv_handle_new(struct dcesrv_connection_contex
 */
 _PUBLIC_ struct dcesrv_handle *dcesrv_handle_fetch(
                                          struct dcesrv_connection_context *context, 
-                                         struct policy_handle *p,
+                                         const struct policy_handle *p,
                                          uint8_t handle_type)
 {
        struct dcesrv_handle *h;