summaryrefslogtreecommitdiffstats
path: root/Modules/pwdmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-27 16:51:30 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-27 16:51:30 (GMT)
commitef0a00ec0c8f2fb98616328fa7efdeaf160c0587 (patch)
tree33e7e2d9f77dec5388b05db03970a8aacd7b8c72 /Modules/pwdmodule.c
parent550fbcc2aa8d77faab142177470390abe7e4728d (diff)
downloadcpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.zip
cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.tar.gz
cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.tar.bz2
Use getargs() function.
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r--Modules/pwdmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/pwdmodule.c b/Modules/pwdmodule.c
index 64940b1..3b6a0c1 100644
--- a/Modules/pwdmodule.c
+++ b/Modules/pwdmodule.c
@@ -76,11 +76,11 @@ static object *pwd_getpwuid(self, args)
static object *pwd_getpwnam(self, args)
object *self, *args;
{
- object *name;
+ char *name;
struct passwd *p;
if (!getstrarg(args, &name))
return NULL;
- if ((p = getpwnam(getstringvalue(name))) == NULL) {
+ if ((p = getpwnam(name)) == NULL) {
err_setstr(KeyError, "getpwnam(): name not found");
return NULL;
}
@@ -176,11 +176,11 @@ static object *grp_getgrgid(self, args)
static object *grp_getgrnam(self, args)
object *self, *args;
{
- object *name;
+ char *name;
struct group *p;
if (!getstrarg(args, &name))
return NULL;
- if ((p = getgrnam(getstringvalue(name))) == NULL) {
+ if ((p = getgrnam(name)) == NULL) {
err_setstr(KeyError, "getgrnam(): name not found");
return NULL;
}