summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-09-24 16:24:54 (GMT)
committerFred Drake <fdrake@acm.org>2002-09-24 16:24:54 (GMT)
commit117ac85c4eea46935f8767abfac16625491bb7da (patch)
tree70c1ec2c8de6e1f60f0063731accb3cd2e2f189d
parent36c2bd8e3408de9918021c04588e217174989da9 (diff)
downloadcpython-117ac85c4eea46935f8767abfac16625491bb7da.zip
cpython-117ac85c4eea46935f8767abfac16625491bb7da.tar.gz
cpython-117ac85c4eea46935f8767abfac16625491bb7da.tar.bz2
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*.
-rw-r--r--Modules/pyexpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 85cb602..2009b22 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 {