[Python-checkins] r85822 - python/branches/py3k/Modules/ossaudiodev.c

georg.brandl python-checkins at python.org
Sun Oct 24 16:21:42 CEST 2010


Author: georg.brandl
Date: Sun Oct 24 16:21:42 2010
New Revision: 85822

Log:
Add casts (one needed, one for consistency).

Modified:
   python/branches/py3k/Modules/ossaudiodev.c

Modified: python/branches/py3k/Modules/ossaudiodev.c
==============================================================================
--- python/branches/py3k/Modules/ossaudiodev.c	(original)
+++ python/branches/py3k/Modules/ossaudiodev.c	Sun Oct 24 16:21:42 2010
@@ -800,8 +800,8 @@
     { "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 @@
     { "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 },


More information about the Python-checkins mailing list