mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:net tool - add a "discard_const_p" to suppress the "PySys_SetArgv" warning
This commit is contained in:
parent
5b824eb17b
commit
2859b9df99
@ -315,7 +315,7 @@ static int binary_net(int argc, const char **argv)
|
||||
}
|
||||
py_load_samba_modules();
|
||||
Py_Initialize();
|
||||
PySys_SetArgv(argc, argv);
|
||||
PySys_SetArgv(argc, discard_const_p(char *, argv));
|
||||
py_update_path("bin"); /* FIXME: Can't assume this is always the case */
|
||||
|
||||
py_cmds = py_commands();
|
||||
|
Loading…
Reference in New Issue
Block a user