From c3699d1c44c75575f94f3d75f54d41c3efa13c89 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 26 Feb 2014 20:16:26 +0100 Subject: [PATCH] s3:winbindd: avoid argv related const warnings Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/winbindd/winbindd.c | 4 ++-- source3/winbindd/winbindd_proto.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index cfb2f06e08d..8bc13431e8f 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -1304,7 +1304,7 @@ static void winbindd_addr_changed(struct tevent_req *req) /* Main function */ -int main(int argc, char **argv, char **envp) +int main(int argc, const char **argv) { static bool is_daemon = False; static bool Fork = True; @@ -1374,7 +1374,7 @@ int main(int argc, char **argv, char **envp) /* Initialise samba/rpc client stuff */ - pc = poptGetContext("winbindd", argc, (const char **)argv, long_options, 0); + pc = poptGetContext("winbindd", argc, argv, long_options, 0); while ((opt = poptGetNextOpt(pc)) != -1) { switch (opt) { diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 07f4e81dfd0..33a70821b1f 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -36,7 +36,6 @@ bool winbindd_use_idmap_cache(void); bool winbindd_use_cache(void); char *get_winbind_priv_pipe_dir(void); struct tevent_context *winbind_event_context(void); -int main(int argc, char **argv, char **envp); /* The following definitions come from winbindd/winbindd_ads.c */ -- 2.11.4.GIT