Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ec0b4af3
Commit
ec0b4af3
authored
Dec 18, 1996
by
Roger E. Masse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eradicated all references to getintarg and getstrarg and substituded the
proper functions as defined in rename2.h. Thanks Barry!
parent
cfe3b61c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
Modules/grpmodule.c
Modules/grpmodule.c
+2
-5
No files found.
Modules/grpmodule.c
View file @
ec0b4af3
...
...
@@ -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"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment