From 530e3db70b5cf1f6e9dd4b70091a094505fa15f0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 27 Feb 2014 09:31:42 +0100 Subject: [PATCH] lib/smbconf: remove const warning Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- lib/smbconf/smbconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }