Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 44409468afbe3edfb6003b2e8bfcf285 > files > 6

kiki-1.0.2-6mdv2008.1.src.rpm

--- kiki/SWIG/KikiPy_wrap.cpp~	2005-11-10 22:26:37.000000000 +0100
+++ kiki/SWIG/KikiPy_wrap.cpp	2007-01-19 17:07:45.000000000 +0100
@@ -1206,7 +1206,7 @@ type_error:
     obj = pyobj;
     if (PyCFunction_Check(obj)) {
       /* here we get the method pointer for callbacks */
-      char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
+      const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
       c = doc ? strstr(doc, "swig_ptr: ") : 0;
       if (c) {
 	c = ty ? SWIG_UnpackVoidPtr(c + 10, &vptr, ty->name) : 0;
@@ -16309,11 +16309,11 @@ extern "C" {
     swig_type_info **types_initial) {
         size_t i;
         for (i = 0; methods[i].ml_name; ++i) {
-            char *c = methods[i].ml_doc;
+            const char *c = methods[i].ml_doc;
             if (c && (c = strstr(c, "swig_ptr: "))) {
                 int j;
                 swig_const_info *ci = 0;
-                char *name = c + 10;
+                const char *name = c + 10;
                 for (j = 0; const_table[j].type; ++j) {
                     if (strncmp(const_table[j].name, name, 
                     strlen(const_table[j].name)) == 0) {