From 2394f8788d2f6e21064db0b6099a0dbe3a33e1d6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 14 Aug 2013 10:47:11 +0200 Subject: s3:client: fix compiler warning Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- source3/client/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/client/client.c b/source3/client/client.c index ebdcbad0b3..d302d43925 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -5338,6 +5338,7 @@ static int do_message_op(struct user_auth_info *a_info) int main(int argc,char *argv[]) { + const char **const_argv = discard_const_p(const char *, argv); char *base_directory = NULL; int opt; char *query_host = NULL; @@ -5388,7 +5389,7 @@ static int do_message_op(struct user_auth_info *a_info) popt_common_set_auth_info(auth_info); /* skip argv(0) */ - pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0); + pc = poptGetContext("smbclient", argc, const_argv, long_options, 0); poptSetOtherOptionHelp(pc, "service "); while ((opt = poptGetNextOpt(pc)) != -1) { -- cgit