mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3/ntvfs: squash 'cast between incompatible function types' warning
Fix various PyCFunction definitions to avoid 'cast between incompatible function types' warnings when compiled with -Wcast-function-type Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
8c8fe32362
commit
0830485d1c
@ -29,7 +29,8 @@
|
||||
#include "libcli/util/pyerrors.h"
|
||||
#include "param/pyparam.h"
|
||||
|
||||
static PyObject *py_is_xattr_supported(PyObject *self)
|
||||
static PyObject *py_is_xattr_supported(PyObject *self,
|
||||
PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return Py_True;
|
||||
}
|
||||
|
@ -25,7 +25,8 @@
|
||||
#include "system/filesys.h"
|
||||
#include "lib/util/base64.h"
|
||||
|
||||
static PyObject *py_is_xattr_supported(PyObject *self)
|
||||
static PyObject *py_is_xattr_supported(PyObject *self,
|
||||
PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
#if !defined(HAVE_XATTR_SUPPORT)
|
||||
return Py_False;
|
||||
|
@ -33,7 +33,8 @@
|
||||
#include "lib/dbwrap/dbwrap_tdb.h"
|
||||
#include "source3/lib/xattr_tdb.h"
|
||||
|
||||
static PyObject *py_is_xattr_supported(PyObject *self)
|
||||
static PyObject *py_is_xattr_supported(PyObject *self,
|
||||
PyObject *Py_UNUSED(ignored))
|
||||
{
|
||||
return Py_True;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user