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

Mukesh Ojha mukesh02 at linux.vnet.ibm.com
Thu Sep 1 20:07:20 AEST 2016



On Thursday 01 September 2016 03:08 PM, Stewart Smith wrote:
> Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>

Reviewed-by: Mukesh Ojha <mukesh02 at linux.vnet.ibm.com>

-Mukesh
> ---
>   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;



More information about the Skiboot mailing list