diff options
Diffstat (limited to 'posix.c')
-rw-r--r-- | posix.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -178,8 +178,8 @@ SCM l_pwinfo(user) struct passwd *entry; SCM *ve = VELTS(ans); DEFER_INTS; - if UNBNDP(user) SYSCALL(entry = getpwent();); - else if INUMP(user) SYSCALL(entry = getpwuid(INUM(user));); + if (UNBNDP(user)) SYSCALL(entry = getpwent();); + else if (INUMP(user)) SYSCALL(entry = getpwuid(INUM(user));); else { ASRTER(NIMP(user) && STRINGP(user), user, ARG1, s_pwinfo); SYSCALL(entry = getpwnam(CHARS(user));); @@ -204,8 +204,8 @@ SCM l_grinfo(name) struct group *entry; SCM *ve = VELTS(ans); DEFER_INTS; - if UNBNDP(name) SYSCALL(entry = getgrent();); - else if INUMP(name) SYSCALL(entry = getgrgid(INUM(name));); + if (UNBNDP(name)) SYSCALL(entry = getgrent();); + else if (INUMP(name)) SYSCALL(entry = getgrgid(INUM(name));); else { ASRTER(NIMP(name) && STRINGP(name), name, ARG1, s_grinfo); SYSCALL(entry = getgrnam(CHARS(name));); |