summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-08-28 21:21:22 (GMT)
committerGuido van Rossum <guido@python.org>1997-08-28 21:21:22 (GMT)
commitc1f088201f5a2a69b0d2045123a61d27406dfb8a (patch)
tree1922f342256a96d48eb2375c334c9cfe5ba33b37 /Modules
parent24a49941b334e762d5f0c4868165bcc6ccdfae95 (diff)
downloadcpython-c1f088201f5a2a69b0d2045123a61d27406dfb8a.zip
cpython-c1f088201f5a2a69b0d2045123a61d27406dfb8a.tar.gz
cpython-c1f088201f5a2a69b0d2045123a61d27406dfb8a.tar.bz2
Added (binaryfunc) casts to function pointers in method lists.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/zlibmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c
index 4fc3093..6f416b4 100644
--- a/Modules/zlibmodule.c
+++ b/Modules/zlibmodule.c
@@ -580,15 +580,15 @@ PyZlib_unflush(self, args)
static PyMethodDef comp_methods[] =
{
- {"compress", PyZlib_objcompress, 1, comp_compress__doc__},
- {"flush", PyZlib_flush, 0, comp_flush__doc__},
+ {"compress", (binaryfunc)PyZlib_objcompress, 1, comp_compress__doc__},
+ {"flush", (binaryfunc)PyZlib_flush, 0, comp_flush__doc__},
{NULL, NULL}
};
static PyMethodDef Decomp_methods[] =
{
- {"decompress", PyZlib_objdecompress, 1, decomp_decompress__doc__},
- {"flush", PyZlib_unflush, 0, decomp_flush__doc__},
+ {"decompress", (binaryfunc)PyZlib_objdecompress, 1, decomp_decompress__doc__},
+ {"flush", (binaryfunc)PyZlib_unflush, 0, decomp_flush__doc__},
{NULL, NULL}
};