shithub: scc

Download patch

ref: c0021447e97c23fc7f846ad9226f3d9f2b5068c8
parent: b3732c890cba4aa7403ed28289127a9cb06f7864
author: Quentin Rameau <[email protected]>
date: Mon Feb 27 10:57:48 EST 2017

[libc] Correct style in strcspn

--- a/libc/src/strcspn.c
+++ b/libc/src/strcspn.c
@@ -5,15 +5,15 @@
 size_t
 strcspn(const char *s1, const char *s2)
 {
-        size_t n;
-        int c;
+	size_t n;
+	int c;
 	const char *p;
 
-        for (n = 0; c = *s1++; ++n) {
-                for (p = s2; *p && *p != c; ++p)
-                        /* nothing */;
-                if (*p == c)
-                        break;
-        }
-        return n;
+	for (n = 0; c = *s1++; ++n) {
+		for (p = s2; *p && *p != c; ++p)
+			/* nothing */;
+		if (*p == c)
+			break;
+	}
+	return n;
 }