From 91caf9b920a6ef0cb1adec22376cd3391b5145cd Mon Sep 17 00:00:00 2001 From: delphij Date: Fri, 12 Mar 2010 21:15:35 +0000 Subject: Follow up commit to reindent the code. MFC after: 1 month --- lib/libc/string/strlen.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'lib/libc/string') 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 */ -- cgit v1.1