1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

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
This commit is contained in:
Günther Deschner 2013-12-19 22:23:44 +01:00 committed by Andreas Schneider
parent f1685427ed
commit 8e5f4eab76
8 changed files with 24 additions and 24 deletions

View File

@ -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)
{

View File

@ -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,

View File

@ -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,

View File

@ -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;

View File

@ -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;

View File

@ -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

View File

@ -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

View File

@ -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