diff options
author | Günther Deschner <gd@samba.org> | 2013-12-19 22:23:44 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-07 18:52:42 +0100 |
commit | 8e5f4eab764918353cfb17fddb6abe6a2b737f6c (patch) | |
tree | a828acb243ac22f7310b4dafb787f4a3ff5f6e87 /source3/libgpo/gpext | |
parent | f1685427ed26da39e3d4ad5be7406c61d7cd1179 (diff) | |
download | samba-8e5f4eab764918353cfb17fddb6abe6a2b737f6c.tar.gz |
libgpo: apply some const.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Jan 7 18:52:42 CET 2014 on sn-devel-104
Diffstat (limited to 'source3/libgpo/gpext')
-rw-r--r-- | source3/libgpo/gpext/registry.c | 6 | ||||
-rw-r--r-- | source3/libgpo/gpext/scripts.c | 10 | ||||
-rw-r--r-- | source3/libgpo/gpext/security.c | 6 |
3 files changed, 11 insertions, 11 deletions
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 |