summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-10-24 14:21:42 (GMT)
committerGeorg Brandl <georg@python.org>2010-10-24 14:21:42 (GMT)
commit687a1fa5462a400480c1c1422c9a96b58af6cd4e (patch)
tree6e16cad5baa9fbcd0b577f04e1a129675398288b /Modules
parentb75b639a8bb96b64d7966457ab6480a911ac6819 (diff)
downloadcpython-687a1fa5462a400480c1c1422c9a96b58af6cd4e.zip
cpython-687a1fa5462a400480c1c1422c9a96b58af6cd4e.tar.gz
cpython-687a1fa5462a400480c1c1422c9a96b58af6cd4e.tar.bz2
Add casts (one needed, one for consistency).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ossaudiodev.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index 2c9d797..0a70c20 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 },