diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-14 10:47:11 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-08-15 09:07:06 +0200 |
commit | 2394f8788d2f6e21064db0b6099a0dbe3a33e1d6 (patch) | |
tree | e0f5e2779b45f975e4ae8d7a4d1ef3201790611f /source3/client | |
parent | 9b4692f2d057f31f76db0bdf7c4a515db057e2dd (diff) | |
download | samba-2394f8788d2f6e21064db0b6099a0dbe3a33e1d6.tar.gz samba-2394f8788d2f6e21064db0b6099a0dbe3a33e1d6.tar.bz2 samba-2394f8788d2f6e21064db0b6099a0dbe3a33e1d6.zip |
s3:client: fix compiler warning
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <password>"); while ((opt = poptGetNextOpt(pc)) != -1) { |