[evolution/gnome-2-28] Fix compiler warnings in python-plugin-loader.



commit ed0276dcddeeeef6169c17dfc55edaad93b6bcfc
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Sep 7 07:56:26 2009 -0400

    Fix compiler warnings in python-plugin-loader.

 plugins/python/python-plugin-loader.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/python/python-plugin-loader.c b/plugins/python/python-plugin-loader.c
index 0a03809..458440d 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 {
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]