summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-06 14:36:06 +0200
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-04-06 14:54:11 +0200
commit2859b9df99bf2b49e90feca3ad7b7de6be816fe7 (patch)
treeb94fe557cae29c1f316b777609d20a9170628e18 /source4/utils
parent5b824eb17bc11b2de8b2df9b9bc55db1d0e08df0 (diff)
downloadsamba-2859b9df99bf2b49e90feca3ad7b7de6be816fe7.tar.gz
samba-2859b9df99bf2b49e90feca3ad7b7de6be816fe7.tar.bz2
samba-2859b9df99bf2b49e90feca3ad7b7de6be816fe7.zip
s4:net tool - add a "discard_const_p" to suppress the "PySys_SetArgv" warning
Diffstat (limited to 'source4/utils')
-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();