diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-03-30 17:16:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-03-30 17:16:38 +0000 |
commit | 5337e301d74fd022c6b947fa978a12121f5e8f9f (patch) | |
tree | 31f24adfb3fb3e4d0e0e7aaca4e7dbd6cc0df942 /bin/ksh/path.c | |
parent | a47df1829eb3be603b20e38db0ab7b904b14f545 (diff) |
lots of indentation cleanup, now ksh is readable like our other code.
double checked to make sure no binaries change, and eyed by niallo
Diffstat (limited to 'bin/ksh/path.c')
-rw-r--r-- | bin/ksh/path.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bin/ksh/path.c b/bin/ksh/path.c index 46bfd388749..f20823faab4 100644 --- a/bin/ksh/path.c +++ b/bin/ksh/path.c @@ -1,4 +1,4 @@ -/* $OpenBSD: path.c,v 1.11 2004/12/20 11:34:26 otto Exp $ */ +/* $OpenBSD: path.c,v 1.12 2005/03/30 17:16:37 deraadt Exp $ */ #include "sh.h" #include <sys/stat.h> @@ -70,9 +70,8 @@ make_path(const char *cwd, const char *file, *cdpathp = *pend ? ++pend : (char *) 0; } - if ((use_cdpath == 0 || !plen || plist[0] != '/') - && (cwd && *cwd)) - { + if ((use_cdpath == 0 || !plen || plist[0] != '/') && + (cwd && *cwd)) { len = strlen(cwd); XcheckN(*xsp, xp, len); memcpy(xp, cwd, len); @@ -253,8 +252,8 @@ do_phys_path(XString *xsp, char *xp, const char *path) lbuf[llen] = '\0'; /* If absolute path, start from scratch.. */ - xp = lbuf[0] == '/' ? Xstring(*xsp, xp) - : Xrestpos(*xsp, xp, savepos); + xp = lbuf[0] == '/' ? Xstring(*xsp, xp) : + Xrestpos(*xsp, xp, savepos); if (!(xp = do_phys_path(xsp, xp, lbuf))) return (char *) 0; } |