File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ PERFORMANCE OF THIS SOFTWARE.
3636#include <sys/types.h>
3737#include <grp.h>
3838
39- #define getintarg (v ,a ) PyArg_Parse((v),"i",(a))
40- #define getstrarg (v ,a ) PyArg_Parse((v),"s",(a))
41-
4239static PyObject * mkgrent (p )
4340 struct group * p ;
4441{
@@ -75,7 +72,7 @@ static PyObject *grp_getgrgid(self, args)
7572{
7673 int gid ;
7774 struct group * p ;
78- if (!getintarg ( args , & gid ))
75+ if (!PyArg_Parse (( args ), "i" ,( & gid ) ))
7976 return NULL ;
8077 if ((p = getgrgid (gid )) == NULL ) {
8178 PyErr_SetString (PyExc_KeyError , "getgrgid(): gid not found" );
@@ -89,7 +86,7 @@ static PyObject *grp_getgrnam(self, args)
8986{
9087 char * name ;
9188 struct group * p ;
92- if (!getstrarg ( args , & name ))
89+ if (!PyArg_Parse (( args ), "s" ,( & name ) ))
9390 return NULL ;
9491 if ((p = getgrnam (name )) == NULL ) {
9592 PyErr_SetString (PyExc_KeyError , "getgrnam(): name not found" );
You can’t perform that action at this time.
0 commit comments