[Skiboot] [PATCH] strlen: use size_t for len

Stewart Smith stewart at linux.vnet.ibm.com
Thu Sep 1 19:38:33 AEST 2016


Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 libc/string/strlen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libc/string/strlen.c b/libc/string/strlen.c
index 37a1b7812e3c..95b99d25455f 100644
--- a/libc/string/strlen.c
+++ b/libc/string/strlen.c
@@ -15,7 +15,7 @@
 size_t
 strlen(const char *s)
 {
-	int len = 0;
+	size_t len = 0;
 
 	while (*s != 0) {
 		len += 1;
-- 
2.1.4



More information about the Skiboot mailing list