summaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/pwd.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index fef433cf..a5cfa248 100644
--- a/bin/pwd/pwd.c
+++ b/bin/pwd/pwd.c
@@ -36,8 +36,7 @@ int main(int argc, char **argv)
const char *pwd;
struct stat cst, pst;
- if ((pwd = getenv("PWD")) == NULL || *pwd != '/' ||
- stat(pwd, &pst) < 0) {
+ if ((pwd = getenv("PWD")) == NULL || *pwd != '/' || stat(pwd, &pst) < 0) {
out = cwd;
}
@@ -45,9 +44,7 @@ int main(int argc, char **argv)
perror("pwd: stat");
}
- out = (pst.st_dev == cst.st_dev && pst.st_ino == cst.st_ino) ?
- pwd :
- cwd;
+ out = (pst.st_dev == cst.st_dev && pst.st_ino == cst.st_ino) ? pwd : cwd;
}
iov[0].iov_base = (char *)out;