From: Fred Drake Date: Tue, 24 Sep 2002 16:24:54 +0000 (+0000) Subject: Be more careful with the type of the xmlhandlersetter; it takes an X-Git-Tag: v2.3c1~3997 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=117ac85c4eea46935f8767abfac16625491bb7da;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 85cb602fb631..2009b225bcbd 100644 --- a/Modules/pyexpat.c +++ b/Modules/pyexpat.c @@ -68,7 +68,7 @@ typedef struct { static PyTypeObject Xmlparsetype; -typedef void (*xmlhandlersetter)(XML_Parser *self, void *meth); +typedef void (*xmlhandlersetter)(XML_Parser self, void *meth); typedef void* xmlhandler; struct HandlerInfo {