aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-09-07 19:56:26 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-07 19:56:26 +0800
commited0276dcddeeeef6169c17dfc55edaad93b6bcfc (patch)
treeec625467daa84d82ee5e5c4a789b74c236124d26
parent2ea4a284a6a4b68bde37ca6fe825b0a5f02a7f10 (diff)
downloadgsoc2013-evolution-EVOLUTION_2_27_92.tar
gsoc2013-evolution-EVOLUTION_2_27_92.tar.gz
gsoc2013-evolution-EVOLUTION_2_27_92.tar.bz2
gsoc2013-evolution-EVOLUTION_2_27_92.tar.lz
gsoc2013-evolution-EVOLUTION_2_27_92.tar.xz
gsoc2013-evolution-EVOLUTION_2_27_92.tar.zst
gsoc2013-evolution-EVOLUTION_2_27_92.zip
Fix compiler warnings in python-plugin-loader.EVOLUTION_2_27_92
-rw-r--r--plugins/python/python-plugin-loader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/python/python-plugin-loader.c b/plugins/python/python-plugin-loader.c
index 0a03809e97..458440d3af 100644
--- a/plugins/python/python-plugin-loader.c
+++ b/plugins/python/python-plugin-loader.c
@@ -20,9 +20,10 @@
*
*/
+#include <Python.h>
+
#include <sys/types.h>
#include <string.h>
-#include <Python.h>
#include "python-plugin-loader.h"
@@ -93,7 +94,7 @@ epp_invoke(EPlugin *ep, const gchar *name, gpointer data)
if (PyCallable_Check(p->pClass))
pInstance = PyObject_CallObject(p->pClass, NULL);
- pValue = PyObject_CallMethod(pInstance, name, NULL);
+ pValue = PyObject_CallMethod(pInstance, (gchar *) name, NULL);
} else {