summaryrefslogtreecommitdiff
path: root/lib/smbconf
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smbconf')
-rw-r--r--lib/smbconf/smbconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/smbconf/smbconf.c b/lib/smbconf/smbconf.c
index 27d36cac0e5..4129ea5540e 100644
--- a/lib/smbconf/smbconf.c
+++ b/lib/smbconf/smbconf.c
@@ -286,7 +286,7 @@ sbcErr smbconf_create_set_share(struct smbconf_ctx *ctx,
}
err = smbconf_set_includes(ctx, service->name, num_includes,
- (const char **)includes);
+ discard_const_p(const char *, includes));
if (!SBC_ERROR_IS_OK(err)) {
goto cancel;
}