summaryrefslogtreecommitdiff
path: root/test/dbus_py_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dbus_py_test.c')
-rw-r--r--test/dbus_py_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dbus_py_test.c b/test/dbus_py_test.c
index bd2399d..7f8f996 100644
--- a/test/dbus_py_test.c
+++ b/test/dbus_py_test.c
@@ -2,6 +2,8 @@
*
* Copyright (C) 2007 Collabora Ltd. <http://www.collabora.co.uk/>
*
+ * SPDX-License-Identifier: MIT
+ *
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
@@ -112,7 +114,7 @@ UnusableMainLoop (PyObject *always_null UNUSED, PyObject *args, PyObject *kwargs
}
static PyMethodDef module_functions[] = {
- {"UnusableMainLoop", (PyCFunction)UnusableMainLoop,
+ {"UnusableMainLoop", (PyCFunction) (void (*)(void))UnusableMainLoop,
METH_VARARGS|METH_KEYWORDS, "Return a main loop that fails to attach"},
{NULL, NULL, 0, NULL}
};