]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Be more careful with the type of the xmlhandlersetter; it takes an
authorFred Drake <fdrake@acm.org>
Tue, 24 Sep 2002 16:24:54 +0000 (16:24 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 24 Sep 2002 16:24:54 +0000 (16:24 +0000)
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*.

Modules/pyexpat.c

index 85cb602fb6315d7e849b09e64b572c5da0cee557..2009b225bcbd29b6e68baadd8ee124638e9038ab 100644 (file)
@@ -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 {