summaryrefslogtreecommitdiff
path: root/libgpo/gpo_ini.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2016-09-27 18:18:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-01-06 12:28:19 +0100
commitdcb26801632d354e4037f146f89d55448fbbb622 (patch)
tree50c7f5311197f27abafebadf90c0c88c1dea8983 /libgpo/gpo_ini.h
parent8e5251c1f30a86ef88c7c145c71deccf19d4189f (diff)
downloadsamba-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.h6
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);