mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
Add casts (one needed, one for consistency).
This commit is contained in:
parent
b75b639a8b
commit
687a1fa546
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user