From 655d6b508afe6bbb031a4637b3a310b480181136 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 26 Feb 2014 20:16:26 +0100 Subject: [PATCH] s3:smbd: avoid a compiler warning in open_sockets_smbd() Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/smbd/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 8c90fe8a05b..05104daebc7 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -755,7 +755,9 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent, /* use a reasonable default set of ports - listing on 445 and 139 */ if (smb_ports) { - ports = (const char **)str_list_make_v3(talloc_tos(), smb_ports, NULL); + char **l; + l = str_list_make_v3(talloc_tos(), smb_ports, NULL); + ports = discard_const_p(const char *, l); } for (j = 0; ports && ports[j]; j++) { -- 2.11.4.GIT