From 43b936d08c51726205123ae1af5c5f8b5d3b6fcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 17 Jan 2002 23:15:58 +0000 Subject: Patch #477750: Use METH_ constants in Modules. --- Modules/sunaudiodev.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'Modules/sunaudiodev.c') diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c index 78be8427d5..514cab6b74 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 }, }; -- cgit v1.2.1