summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/utils/net/net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c
index 62d7afcbd9..83cc64d345 100644
--- a/source4/utils/net/net.c
+++ b/source4/utils/net/net.c
@@ -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();