Verified Commit c35beb36 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Remove unrequired PyCFunction casts

parent ba2adc15
......@@ -244,7 +244,7 @@ static struct PyMethodDef db_methods[] = {
"get contents of a group\n"
"args: a group name (string)\n"
"returns: a tuple (group name, list of packages)" },
{ "update", (PyCFunction)pyalpm_db_update, METH_VARARGS | METH_KEYWORDS,
{ "update", pyalpm_db_update, METH_VARARGS | METH_KEYWORDS,
"update a database from its url attribute\n"
"args: force (update even if DB is up to date, boolean)\n"
"returns: True if an update has been done" },
......
......@@ -183,7 +183,7 @@ static struct _alpm_cb_getset cb_getsets[N_CALLBACKS] = {
* stored in static variables, and the reference count is
* increased accordingly.
*
* These Python functions are wrapped into C functions
* These Python functions are wrapped into C functions
* that are passed to libalpm.
*/
PyObject *global_py_callbacks[N_CALLBACKS];
......@@ -316,7 +316,7 @@ struct PyGetSetDef pyalpm_handle_getset[] = {
static PyMethodDef pyalpm_handle_methods[] = {
/* Transaction initialization */
{"init_transaction", (PyCFunction)pyalpm_trans_init, METH_VARARGS | METH_KEYWORDS,
{"init_transaction", pyalpm_trans_init, METH_VARARGS | METH_KEYWORDS,
"Initializes a transaction.\n"
"Arguments:\n"
" nodeps, force, nosave, nodepversion, cascade, recurse,\n"
......@@ -326,7 +326,7 @@ static PyMethodDef pyalpm_handle_methods[] = {
},
/* Package load */
{"load_pkg", (PyCFunction)pyalpm_package_load, METH_VARARGS | METH_KEYWORDS,
{"load_pkg", pyalpm_package_load, METH_VARARGS | METH_KEYWORDS,
"loads package information from a tarball"},
/* Database members */
......
......@@ -439,7 +439,7 @@ static struct PyMethodDef pyalpm_trans_methods[] = {
"append a package addition to transaction"},
{"remove_pkg", pyalpm_trans_remove_pkg, METH_VARARGS,
"append a package removal to transaction"},
{"sysupgrade", (PyCFunction)pyalpm_trans_sysupgrade, METH_VARARGS | METH_KEYWORDS,
{"sysupgrade", pyalpm_trans_sysupgrade, METH_VARARGS | METH_KEYWORDS,
"set the transaction to perform a system upgrade\n"
"args:\n"
" transaction (boolean) : whether to enable downgrades\n" },
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment