mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:winbindd: avoid argv related const warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
b0d09ee39c
commit
c3699d1c44
@ -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) {
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user