diff options
author | Günther Deschner <gd@samba.org> | 2016-09-27 18:18:51 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-01-06 12:28:19 +0100 |
commit | dcb26801632d354e4037f146f89d55448fbbb622 (patch) | |
tree | 50c7f5311197f27abafebadf90c0c88c1dea8983 /libgpo/gpo_ini.c | |
parent | 8e5251c1f30a86ef88c7c145c71deccf19d4189f (diff) | |
download | samba-dcb26801632d354e4037f146f89d55448fbbb622.tar.gz |
libgpo: apply some const.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'libgpo/gpo_ini.c')
-rw-r--r-- | libgpo/gpo_ini.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgpo/gpo_ini.c b/libgpo/gpo_ini.c index 8166bcb977e..603d3044171 100644 --- a/libgpo/gpo_ini.c +++ b/libgpo/gpo_ini.c @@ -150,7 +150,7 @@ static NTSTATUS convert_file_from_ucs2(TALLOC_CTX *mem_ctx, /**************************************************************** ****************************************************************/ -NTSTATUS gp_inifile_getstring(struct gp_inifile_context *ctx, const char *key, char **ret) +NTSTATUS gp_inifile_getstring(struct gp_inifile_context *ctx, const char *key, const char **ret) { int i; @@ -170,7 +170,7 @@ NTSTATUS gp_inifile_getstring(struct gp_inifile_context *ctx, const char *key, c NTSTATUS gp_inifile_getint(struct gp_inifile_context *ctx, const char *key, int *ret) { - char *value; + const char *value; NTSTATUS result; result = gp_inifile_getstring(ctx,key, &value); @@ -189,7 +189,7 @@ NTSTATUS gp_inifile_getint(struct gp_inifile_context *ctx, const char *key, int NTSTATUS gp_inifile_getbool(struct gp_inifile_context *ctx, const char *key, bool *ret) { - char *value; + const char *value; NTSTATUS result; result = gp_inifile_getstring(ctx,key, &value); @@ -415,7 +415,7 @@ NTSTATUS parse_gpt_ini(TALLOC_CTX *mem_ctx, NTSTATUS result; int rv; int v = 0; - char *name = NULL; + const char *name = NULL; struct gp_inifile_context *ctx; if (!filename) { |