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 /libgpo | |
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 'libgpo')
-rw-r--r-- | libgpo/gpext/gpext.c | 2 | ||||
-rw-r--r-- | libgpo/gpext/gpext.h | 6 | ||||
-rw-r--r-- | libgpo/gpo.h | 8 | ||||
-rw-r--r-- | libgpo/gpo_fetch.c | 2 | ||||
-rw-r--r-- | libgpo/gpo_util.c | 8 |
5 files changed, 13 insertions, 13 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; |