summaryrefslogtreecommitdiffstats
path: root/posix.c
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:31 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:31 -0800
commitae2b295c7deaf2d7c18ad1ed9b6050970e56bae7 (patch)
treeeee15e02ae016333546d3841712be591b2bcb06f /posix.c
parent302e3218b7d487539ec305bf23881a6ee7d5be99 (diff)
downloadscm-ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7.tar.gz
scm-ae2b295c7deaf2d7c18ad1ed9b6050970e56bae7.zip
Import Upstream version 5e2upstream/5e2
Diffstat (limited to 'posix.c')
-rw-r--r--posix.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/posix.c b/posix.c
index 229384a..e6dab25 100644
--- a/posix.c
+++ b/posix.c
@@ -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)););