summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source3/winbindd/winbindd.c4
-rw-r--r--source3/winbindd/winbindd_proto.h1
2 files changed, 2 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index cfb2f06e08..8bc13431e8 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 07f4e81dfd..33a70821b1 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 */