s4:net tool - add a "discard_const_p" to suppress the "PySys_SetArgv" warning
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 6 Apr 2010 12:36:06 +0000 (14:36 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Tue, 6 Apr 2010 12:54:11 +0000 (14:54 +0200)
source4/utils/net/net.c

index 62d7afcbd95cf4635255278bc51238278c39e00b..83cc64d3456ec163937d39e225be43b2d680d906 100644 (file)
@@ -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();