aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-09-01 19:38:33 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-02 15:33:54 +1000
commit19ed47363f85634bda960ebe4511829d0d5ecced (patch)
tree8e6ae11f64cb4e5b39be62a2c3b54c0353ee3792
parent7bf89d68b8dd3b12d4540e9901f9d5ed325cf94d (diff)
downloadskiboot-19ed47363f85634bda960ebe4511829d0d5ecced.zip
skiboot-19ed47363f85634bda960ebe4511829d0d5ecced.tar.gz
skiboot-19ed47363f85634bda960ebe4511829d0d5ecced.tar.bz2
strlen: use size_t for len
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Reviewed-by: Mukesh Ojha <mukesh02@linux.vnet.ibm.com>
-rw-r--r--libc/string/strlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/string/strlen.c b/libc/string/strlen.c
index 37a1b78..95b99d2 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;