From a984eb367c032dbe2577f01238c3d1268526be70 Mon Sep 17 00:00:00 2001 From: Kacper Date: Thu, 25 Dec 2025 19:24:38 +0100 Subject: Clang-tidy fixes --- bin/pwd/pwd.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin/pwd') 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; -- cgit v1.2.3