summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorrse <rse@FreeBSD.org>2009-06-01 11:11:46 +0000
committerrse <rse@FreeBSD.org>2009-06-01 11:11:46 +0000
commit7e3e9ea5ae8d3675058f6c30d3685f45847eabc8 (patch)
tree3b8e8d0ce5ced6fa1ff47a9fbf2b59f4e27576d8 /bin
parent336f1ea816d3c23dd1a9332ddb6f774a92a85a03 (diff)
downloadFreeBSD-src-7e3e9ea5ae8d3675058f6c30d3685f45847eabc8.zip
FreeBSD-src-7e3e9ea5ae8d3675058f6c30d3685f45847eabc8.tar.gz
align coding style with style(9) to avoid misunderstandings
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sh/exec.c b/bin/sh/exec.c
index e11470f..8989ead 100644
--- a/bin/sh/exec.c
+++ b/bin/sh/exec.c
@@ -187,7 +187,8 @@ padvance(char **path, char *name)
if (*path == NULL)
return NULL;
start = *path;
- for (p = start ; *p && *p != ':' && *p != '%' ; p++);
+ for (p = start; *p && *p != ':' && *p != '%'; p++)
+ ; /* nothing */
len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */
while (stackblocksize() < len)
growstackblock();
OpenPOWER on IntegriCloud