summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger E. Masse <rmasse@newcnri.cnri.reston.va.us>1996-12-18 20:07:39 (GMT)
committerRoger E. Masse <rmasse@newcnri.cnri.reston.va.us>1996-12-18 20:07:39 (GMT)
commitec0b4af3d4d92c174a421967175672e73189531f (patch)
treeda1b7d879bf3f8aca273947554ce079aa32d49ae
parentcfe3b61c02e86b33149c3e2b95650480f053c365 (diff)
downloadcpython-ec0b4af3d4d92c174a421967175672e73189531f.zip
cpython-ec0b4af3d4d92c174a421967175672e73189531f.tar.gz
cpython-ec0b4af3d4d92c174a421967175672e73189531f.tar.bz2
Eradicated all references to getintarg and getstrarg and substituded the
proper functions as defined in rename2.h. Thanks Barry!
-rw-r--r--Modules/grpmodule.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/grpmodule.c b/Modules/grpmodule.c
index 23f28f5..ccdba12 100644
--- a/Modules/grpmodule.c
+++ b/Modules/grpmodule.c
@@ -36,9 +36,6 @@ PERFORMANCE OF THIS SOFTWARE.
#include <sys/types.h>
#include <grp.h>
-#define getintarg(v,a) PyArg_Parse((v),"i",(a))
-#define getstrarg(v,a) PyArg_Parse((v),"s",(a))
-
static PyObject *mkgrent(p)
struct group *p;
{
@@ -75,7 +72,7 @@ static PyObject *grp_getgrgid(self, args)
{
int gid;
struct group *p;
- if (!getintarg(args, &gid))
+ if (!PyArg_Parse((args),"i",(&gid)))
return NULL;
if ((p = getgrgid(gid)) == NULL) {
PyErr_SetString(PyExc_KeyError, "getgrgid(): gid not found");
@@ -89,7 +86,7 @@ static PyObject *grp_getgrnam(self, args)
{
char *name;
struct group *p;
- if (!getstrarg(args, &name))
+ if (!PyArg_Parse((args),"s",(&name)))
return NULL;
if ((p = getgrnam(name)) == NULL) {
PyErr_SetString(PyExc_KeyError, "getgrnam(): name not found");