[Skiboot] [PATCH] strlen: use size_t for len
Mukesh Ojha
mukesh02 at linux.vnet.ibm.com
Thu Sep 1 21:27:40 AEST 2016
On Thursday 01 September 2016 03:08 PM, Stewart Smith wrote:
> 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;
There are many places in skiboot sources where
the return value of strlen is taken in 'int'.
-Mukesh
>
> while (*s != 0) {
> len += 1;
More information about the Skiboot
mailing list