]> 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:25:10 +0000 (16:25 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 24 Sep 2002 16:25:10 +0000 (16:25 +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 4d09e3d41af0ab197c54d8dde7fe46f3d2b3a695..d50d30fbb70c2194731949c41e2e92a3b7765d94 100644 (file)
@@ -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 {