From: Fred Drake Date: Tue, 24 Sep 2002 16:25:10 +0000 (+0000) Subject: Be more careful with the type of the xmlhandlersetter; it takes an X-Git-Tag: v2.2.2b1~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=322815abb77c1efb805cb85ab827ad1c8b67d05d;p=thirdparty%2FPython%2Fcpython.git Be more careful with the type of the xmlhandlersetter; it takes an XML_Parser, which happens to be a pointer type, not an XML_Parser*. This generated warnings when compiled with Expat 1.95.5, which no longer defines XML_Parser to be void*. --- diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c index 4d09e3d41af0..d50d30fbb70c 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -89,7 +89,7 @@ typedef struct { staticforward PyTypeObject Xmlparsetype; -typedef void (*xmlhandlersetter)(XML_Parser *self, void *meth); +typedef void (*xmlhandlersetter)(XML_Parser self, void *meth); typedef void* xmlhandler; struct HandlerInfo {