From 8e5f4eab764918353cfb17fddb6abe6a2b737f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Thu, 19 Dec 2013 22:23:44 +0100 Subject: libgpo: apply some const. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Tue Jan 7 18:52:42 CET 2014 on sn-devel-104 --- libgpo/gpext/gpext.c | 2 +- libgpo/gpext/gpext.h | 6 +++--- libgpo/gpo.h | 8 ++++---- libgpo/gpo_fetch.c | 2 +- libgpo/gpo_util.c | 8 ++++---- source3/libgpo/gpext/registry.c | 6 +++--- source3/libgpo/gpext/scripts.c | 10 +++++----- source3/libgpo/gpext/security.c | 6 +++--- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/libgpo/gpext/gpext.c b/libgpo/gpext/gpext.c index 85f0831a048..2afcfecc3d7 100644 --- a/libgpo/gpext/gpext.c +++ b/libgpo/gpext/gpext.c @@ -658,7 +658,7 @@ NTSTATUS gpext_free_gp_extensions(void) void gpext_debug_header(int lvl, const char *name, uint32_t flags, - struct GROUP_POLICY_OBJECT *gpo, + const struct GROUP_POLICY_OBJECT *gpo, const char *extension_guid, const char *snapin_guid) { diff --git a/libgpo/gpext/gpext.h b/libgpo/gpext/gpext.h index 600af23d4c9..0f5139d3915 100644 --- a/libgpo/gpext/gpext.h +++ b/libgpo/gpext/gpext.h @@ -65,8 +65,8 @@ struct gp_extension_methods { uint32_t flags, struct registry_key *root_key, const struct security_token *token, - struct GROUP_POLICY_OBJECT *deleted_gpo_list, - struct GROUP_POLICY_OBJECT *changed_gpo_list); + const struct GROUP_POLICY_OBJECT *deleted_gpo_list, + const struct GROUP_POLICY_OBJECT *changed_gpo_list); NTSTATUS (*get_reg_config)(TALLOC_CTX *mem_ctx, struct gp_extension_reg_info **info); @@ -94,7 +94,7 @@ NTSTATUS gpext_free_gp_extensions(void); void gpext_debug_header(int lvl, const char *name, uint32_t flags, - struct GROUP_POLICY_OBJECT *gpo, + const struct GROUP_POLICY_OBJECT *gpo, const char *extension_guid, const char *snapin_guid); NTSTATUS gpext_process_extension(TALLOC_CTX *mem_ctx, diff --git a/libgpo/gpo.h b/libgpo/gpo.h index dfded119980..0bae44aeca9 100644 --- a/libgpo/gpo.h +++ b/libgpo/gpo.h @@ -169,7 +169,7 @@ NTSTATUS gpo_explode_filesyspath(TALLOC_CTX *mem_ctx, NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx, ADS_STRUCT *ads, const char *cache_dir, - struct GROUP_POLICY_OBJECT *gpo); + const struct GROUP_POLICY_OBJECT *gpo); NTSTATUS gpo_get_sysvol_gpt_version(TALLOC_CTX *mem_ctx, const char *unix_path, uint32_t *sysvol_version, @@ -236,15 +236,15 @@ NTSTATUS check_refresh_gpo(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char *cache_dir, uint32_t flags, - struct GROUP_POLICY_OBJECT *gpo); + const struct GROUP_POLICY_OBJECT *gpo); NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char *cache_dir, uint32_t flags, - struct GROUP_POLICY_OBJECT *gpo_list); + const struct GROUP_POLICY_OBJECT *gpo_list); NTSTATUS gpo_get_unix_path(TALLOC_CTX *mem_ctx, const char *cache_dir, - struct GROUP_POLICY_OBJECT *gpo, + const struct GROUP_POLICY_OBJECT *gpo, char **unix_path); char *gpo_flag_str(TALLOC_CTX *mem_ctx, uint32_t flags); NTSTATUS gp_find_file(TALLOC_CTX *mem_ctx, diff --git a/libgpo/gpo_fetch.c b/libgpo/gpo_fetch.c index 9fdff7c2f2b..07141d42cac 100644 --- a/libgpo/gpo_fetch.c +++ b/libgpo/gpo_fetch.c @@ -151,7 +151,7 @@ static NTSTATUS gpo_connect_server(ADS_STRUCT *ads, NTSTATUS gpo_fetch_files(TALLOC_CTX *mem_ctx, ADS_STRUCT *ads, const char *cache_dir, - struct GROUP_POLICY_OBJECT *gpo) + const struct GROUP_POLICY_OBJECT *gpo) { NTSTATUS result; char *server, *service, *nt_path, *unix_path; diff --git a/libgpo/gpo_util.c b/libgpo/gpo_util.c index 05288c63cb1..b846d3d8649 100644 --- a/libgpo/gpo_util.c +++ b/libgpo/gpo_util.c @@ -477,7 +477,7 @@ NTSTATUS check_refresh_gpo(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char *cache_dir, uint32_t flags, - struct GROUP_POLICY_OBJECT *gpo) + const struct GROUP_POLICY_OBJECT *gpo) { NTSTATUS result; char *server = NULL; @@ -563,10 +563,10 @@ NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, const char *cache_dir, uint32_t flags, - struct GROUP_POLICY_OBJECT *gpo_list) + const struct GROUP_POLICY_OBJECT *gpo_list) { NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - struct GROUP_POLICY_OBJECT *gpo; + const struct GROUP_POLICY_OBJECT *gpo; if (!gpo_list) { return NT_STATUS_INVALID_PARAMETER; @@ -593,7 +593,7 @@ NTSTATUS check_refresh_gpo_list(ADS_STRUCT *ads, NTSTATUS gpo_get_unix_path(TALLOC_CTX *mem_ctx, const char *cache_dir, - struct GROUP_POLICY_OBJECT *gpo, + const struct GROUP_POLICY_OBJECT *gpo, char **unix_path) { char *server, *share, *nt_path; diff --git a/source3/libgpo/gpext/registry.c b/source3/libgpo/gpext/registry.c index 1700eabd464..b51bc305a20 100644 --- a/source3/libgpo/gpext/registry.c +++ b/source3/libgpo/gpext/registry.c @@ -278,15 +278,15 @@ static NTSTATUS registry_process_group_policy(TALLOC_CTX *mem_ctx, uint32_t flags, struct registry_key *root_key, const struct security_token *token, - struct GROUP_POLICY_OBJECT *deleted_gpo_list, - struct GROUP_POLICY_OBJECT *changed_gpo_list) + const struct GROUP_POLICY_OBJECT *deleted_gpo_list, + const struct GROUP_POLICY_OBJECT *changed_gpo_list) { NTSTATUS status; WERROR werr; struct gp_registry_entry *entries = NULL; size_t num_entries = 0; char *unix_path = NULL; - struct GROUP_POLICY_OBJECT *gpo; + const struct GROUP_POLICY_OBJECT *gpo; /* implementation of the policy callback function, see * http://msdn.microsoft.com/en-us/library/aa373494%28v=vs.85%29.aspx diff --git a/source3/libgpo/gpext/scripts.c b/source3/libgpo/gpext/scripts.c index 16af3a23f93..e2841c01cbe 100644 --- a/source3/libgpo/gpext/scripts.c +++ b/source3/libgpo/gpext/scripts.c @@ -228,7 +228,7 @@ static NTSTATUS scripts_parse_ini_section(struct gp_inifile_context *ini_ctx, static WERROR scripts_store_reg_gpovals(TALLOC_CTX *mem_ctx, struct registry_key *key, - struct GROUP_POLICY_OBJECT *gpo) + const struct GROUP_POLICY_OBJECT *gpo) { WERROR werr; @@ -267,7 +267,7 @@ static WERROR scripts_apply(TALLOC_CTX *mem_ctx, struct registry_key *root_key, uint32_t flags, const char *section, - struct GROUP_POLICY_OBJECT *gpo, + const struct GROUP_POLICY_OBJECT *gpo, struct gp_registry_entry *entries, size_t num_entries) { @@ -340,8 +340,8 @@ static NTSTATUS scripts_process_group_policy(TALLOC_CTX *mem_ctx, uint32_t flags, struct registry_key *root_key, const struct security_token *token, - struct GROUP_POLICY_OBJECT *deleted_gpo_list, - struct GROUP_POLICY_OBJECT *changed_gpo_list) + const struct GROUP_POLICY_OBJECT *deleted_gpo_list, + const struct GROUP_POLICY_OBJECT *changed_gpo_list) { NTSTATUS status; WERROR werr; @@ -356,7 +356,7 @@ static NTSTATUS scripts_process_group_policy(TALLOC_CTX *mem_ctx, GP_SCRIPTS_INI_LOGON, GP_SCRIPTS_INI_LOGOFF }; - struct GROUP_POLICY_OBJECT *gpo; + const struct GROUP_POLICY_OBJECT *gpo; /* implementation of the policy callback function, see * http://msdn.microsoft.com/en-us/library/aa373494%28v=vs.85%29.aspx diff --git a/source3/libgpo/gpext/security.c b/source3/libgpo/gpext/security.c index f303622bb14..5360222ad28 100644 --- a/source3/libgpo/gpext/security.c +++ b/source3/libgpo/gpext/security.c @@ -145,13 +145,13 @@ static NTSTATUS security_process_group_policy(TALLOC_CTX *mem_ctx, uint32_t flags, struct registry_key *root_key, const struct security_token *token, - struct GROUP_POLICY_OBJECT *deleted_gpo_list, - struct GROUP_POLICY_OBJECT *changed_gpo_list) + const struct GROUP_POLICY_OBJECT *deleted_gpo_list, + const struct GROUP_POLICY_OBJECT *changed_gpo_list) { NTSTATUS status; char *unix_path = NULL; struct gp_inifile_context *ini_ctx = NULL; - struct GROUP_POLICY_OBJECT *gpo; + const struct GROUP_POLICY_OBJECT *gpo; /* implementation of the policy callback function, see * http://msdn.microsoft.com/en-us/library/aa373494%28v=vs.85%29.aspx -- cgit v1.2.1