Skip to content

Commit

Permalink
Add casts (one needed, one for consistency).
Browse files Browse the repository at this point in the history
  • Loading branch information
birkenfeld committed Oct 24, 2010
1 parent b75b639 commit 687a1fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Modules/ossaudiodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
};
Expand All @@ -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 },
Expand Down

0 comments on commit 687a1fa

Please sign in to comment.