summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-03-12 21:15:35 +0000
committerdelphij <delphij@FreeBSD.org>2010-03-12 21:15:35 +0000
commit91caf9b920a6ef0cb1adec22376cd3391b5145cd (patch)
treedfaa10e8b4dc4b3d705a891e35e47556595bea97 /lib/libc
parentae5ae700daa1f69f414f6066606f705da6e0c1eb (diff)
downloadFreeBSD-src-91caf9b920a6ef0cb1adec22376cd3391b5145cd.zip
FreeBSD-src-91caf9b920a6ef0cb1adec22376cd3391b5145cd.tar.gz
Follow up commit to reindent the code.
MFC after: 1 month
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strlen.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libc/string/strlen.c b/lib/libc/string/strlen.c
index 319e44b..0302ace 100644
--- a/lib/libc/string/strlen.c
+++ b/lib/libc/string/strlen.c
@@ -101,27 +101,27 @@ strlen(const char *str)
vb = ((~*lp) & mask80);
if (va & vb)
/* Check if we have \0 in the first part */
- for (p = str; (uintptr_t)p & LONGPTR_MASK; p++)
- if (*p == '\0')
- return (p - str);
+ for (p = str; (uintptr_t)p & LONGPTR_MASK; p++)
+ if (*p == '\0')
+ return (p - str);
/* Scan the rest of the string using word sized operation */
for (lp = (const unsigned long *)p; ; lp++) {
va = (*lp - mask01);
vb = ((~*lp) & mask80);
if (va & vb) {
- p = (const char *)(lp);
- testbyte(0);
- testbyte(1);
- testbyte(2);
- testbyte(3);
+ p = (const char *)(lp);
+ testbyte(0);
+ testbyte(1);
+ testbyte(2);
+ testbyte(3);
#if (LONG_BIT >= 64)
- testbyte(4);
- testbyte(5);
- testbyte(6);
- testbyte(7);
+ testbyte(4);
+ testbyte(5);
+ testbyte(6);
+ testbyte(7);
#endif
- }
+ }
}
/* NOTREACHED */
OpenPOWER on IntegriCloud