summaryrefslogtreecommitdiffstats
path: root/Modules/sunaudiodev.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-01-17 23:15:58 (GMT)
commit43b936d08c51726205123ae1af5c5f8b5d3b6fcb (patch)
tree1c3e3fd7ec72d71f92f1f0480291c5efc7f19eaf /Modules/sunaudiodev.c
parentc0e1671c71dfcf25c8584b06a2e9584a8806a325 (diff)
downloadcpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.zip
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.gz
cpython-43b936d08c51726205123ae1af5c5f8b5d3b6fcb.tar.bz2
Patch #477750: Use METH_ constants in Modules.
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 },
};