messaging4: Fix types
authorVolker Lendecke <vl@samba.org>
Thu, 27 Nov 2014 11:28:40 +0000 (12:28 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 27 Nov 2014 20:32:18 +0000 (21:32 +0100)
commitf9acb949ccea008e6332f49288a545e0cba40e3b
treef8cae8684c2911cd4cfbd7f9163a35c0c093a2ef
parentc6a5eab3690d2926d66024a35e3c3e818d7e4935
messaging4: Fix types

According to python docs, PyArg_ParseTuple takes "int" and "unsigned
long long". With pointers down to functions, in particular with
varargs, there is no automatic conversion. So we need to be very
strict about types. Automatic conversion to for example uint64_t
happes only with assignment.

This fixes a crash on FreeBSD10/clang.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <rb@sernet.de>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Nov 27 21:32:18 CET 2014 on sn-devel-104
source4/lib/messaging/pymessaging.c