From: Georg Brandl Date: Sun, 24 Oct 2010 14:21:42 +0000 (+0000) Subject: Add casts (one needed, one for consistency). X-Git-Tag: v3.2a4~364 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=687a1fa5462a400480c1c1422c9a96b58af6cd4e;p=thirdparty%2FPython%2Fcpython.git Add casts (one needed, one for consistency). --- diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c index 2c9d797472af..0a70c202faae 100644 --- a/Modules/ossaudiodev.c +++ b/Modules/ossaudiodev.c @@ -800,8 +800,8 @@ static PyMethodDef oss_methods[] = { { "flush", (PyCFunction)oss_sync, METH_VARARGS }, /* Support for the context manager protocol */ - { "__enter__", oss_self, METH_NOARGS }, - { "__exit__", oss_exit, METH_VARARGS }, + { "__enter__", (PyCFunction)oss_self, METH_NOARGS }, + { "__exit__", (PyCFunction)oss_exit, METH_VARARGS }, { NULL, NULL} /* sentinel */ }; @@ -812,8 +812,8 @@ static PyMethodDef oss_mixer_methods[] = { { "fileno", (PyCFunction)oss_mixer_fileno, METH_NOARGS }, /* Support for the context manager protocol */ - { "__enter__", oss_self, METH_NOARGS }, - { "__exit__", oss_exit, METH_VARARGS }, + { "__enter__", (PyCFunction)oss_self, METH_NOARGS }, + { "__exit__", (PyCFunction)oss_exit, METH_VARARGS }, /* Simple ioctl wrappers */ { "controls", (PyCFunction)oss_mixer_controls, METH_VARARGS },