s4/librpc: squash 'cast between incompatible function types' warning
authorNoel Power <noel.power@suse.com>
Thu, 2 May 2019 18:35:56 +0000 (19:35 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 16 May 2019 17:55:17 +0000 (17:55 +0000)
commitcc60866990212236c4184dc1dc8ce3194a7e1869
tree27bf2f3cb61f6c40e9d309100513bdf08ca8d22a
parent0830485d1cddd8567e420e80b60edcf80d26ab24
s4/librpc: squash 'cast between incompatible function types' warning

Where possible make PyCFunction definition signature match. Sometimes
this is not possible (e.g. when the c-function is associated with a
python method definition with 'METH_VARARGS|METH_KEYWORDS' in this
case we use the PY_DISCARD_FUNC_SIG macro.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/librpc/ndr/py_security.c
source4/librpc/rpc/pyrpc.c
source4/librpc/rpc/pyrpc_util.c