diff options
author | Guido van Rossum <guido@python.org> | 1992-01-27 16:51:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-27 16:51:30 (GMT) |
commit | ef0a00ec0c8f2fb98616328fa7efdeaf160c0587 (patch) | |
tree | 33e7e2d9f77dec5388b05db03970a8aacd7b8c72 /Modules/pwdmodule.c | |
parent | 550fbcc2aa8d77faab142177470390abe7e4728d (diff) | |
download | cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.zip cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.tar.gz cpython-ef0a00ec0c8f2fb98616328fa7efdeaf160c0587.tar.bz2 |
Use getargs() function.
Diffstat (limited to 'Modules/pwdmodule.c')
-rw-r--r-- | Modules/pwdmodule.c | 8 |
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; } |