From: Guido van Rossum Date: Thu, 28 Aug 1997 21:21:22 +0000 (+0000) Subject: Added (binaryfunc) casts to function pointers in method lists. X-Git-Tag: v1.5a4~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1f088201f5a2a69b0d2045123a61d27406dfb8a;p=thirdparty%2FPython%2Fcpython.git Added (binaryfunc) casts to function pointers in method lists. --- diff --git a/Modules/zlibmodule.c b/Modules/zlibmodule.c index 4fc309351f33..6f416b4b2a9c 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} };