[sheepdog] [PATCH] sbd: use kstrtoul() instead of strict_strtoul()

Hitoshi Mitake mitake.hitoshi at lab.ntt.co.jp
Tue Jan 20 04:01:30 CET 2015


At Tue, 20 Jan 2015 11:46:32 +0900,
Hitoshi Mitake wrote:
> 
> Cc: hujianyang <hujianyang at huawei.com>
> Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
> ---
>  sbd/sheep_block_device.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Dropping it. The version information should be described about the interfaces.

Thanks,
Hitoshi

> 
> diff --git a/sbd/sheep_block_device.c b/sbd/sheep_block_device.c
> index eaee932..d82ff43 100644
> --- a/sbd/sheep_block_device.c
> +++ b/sbd/sheep_block_device.c
> @@ -290,7 +290,7 @@ static ssize_t sbd_remove(struct bus_type *bus, const char *buf,
>  	unsigned long ul;
>  	int target_id, ret;
>  
> -	ret = strict_strtoul(buf, 10, &ul);
> +	ret = kstrtoul(buf, 10, &ul);
>  	if (ret)
>  		return ret;
>  
> -- 
> 1.9.1
> 



More information about the sheepdog mailing list