summaryrefslogtreecommitdiffstats
path: root/Modules/sunaudiodev.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/sunaudiodev.c')
-rw-r--r--Modules/sunaudiodev.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c
index 78be842..514cab6 100644
--- a/Modules/sunaudiodev.c
+++ b/Modules/sunaudiodev.c
@@ -322,20 +322,20 @@ sad_fileno(sadobject *self, PyObject *args)
static PyMethodDef sad_methods[] = {
- { "read", (PyCFunction)sad_read },
- { "write", (PyCFunction)sad_write },
- { "ibufcount", (PyCFunction)sad_ibufcount },
- { "obufcount", (PyCFunction)sad_obufcount },
+ { "read", (PyCFunction)sad_read, METH_OLDARGS },
+ { "write", (PyCFunction)sad_write, METH_OLDARGS },
+ { "ibufcount", (PyCFunction)sad_ibufcount, METH_OLDARGS },
+ { "obufcount", (PyCFunction)sad_obufcount, METH_OLDARGS },
#define CTL_METHODS 4
- { "getinfo", (PyCFunction)sad_getinfo },
- { "setinfo", (PyCFunction)sad_setinfo },
- { "drain", (PyCFunction)sad_drain },
- { "flush", (PyCFunction)sad_flush },
+ { "getinfo", (PyCFunction)sad_getinfo, METH_OLDARGS },
+ { "setinfo", (PyCFunction)sad_setinfo, METH_OLDARGS },
+ { "drain", (PyCFunction)sad_drain, METH_OLDARGS },
+ { "flush", (PyCFunction)sad_flush, METH_OLDARGS },
#ifdef SOLARIS
- { "getdev", (PyCFunction)sad_getdev },
+ { "getdev", (PyCFunction)sad_getdev, METH_OLDARGS },
#endif
- { "close", (PyCFunction)sad_close },
- { "fileno", (PyCFunction)sad_fileno },
+ { "close", (PyCFunction)sad_close, METH_OLDARGS },
+ { "fileno", (PyCFunction)sad_fileno, METH_OLDARGS },
{NULL, NULL} /* sentinel */
};
@@ -465,7 +465,7 @@ sadopen(PyObject *self, PyObject *args)
}
static PyMethodDef sunaudiodev_methods[] = {
- { "open", sadopen },
+ { "open", sadopen, METH_OLDARGS },
{ 0, 0 },
};