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.h | |
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.h')
-rw-r--r-- | libgpo/gpo_ini.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgpo/gpo_ini.h b/libgpo/gpo_ini.h index 7c945f85620..0bfe5b1df07 100644 --- a/libgpo/gpo_ini.h +++ b/libgpo/gpo_ini.h @@ -18,8 +18,8 @@ */ struct keyval_pair { - char *key; - char *val; + const char *key; + const char *val; }; struct gp_inifile_context { @@ -42,7 +42,7 @@ NTSTATUS parse_gpt_ini(TALLOC_CTX *ctx, const char *filename, uint32_t *version, char **display_name); -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); NTSTATUS gp_inifile_getint(struct gp_inifile_context *ctx, const char *key, int *ret); NTSTATUS gp_inifile_getbool(struct gp_inifile_context *ctx, const char *key, bool *ret); |