At Sat, 18 Apr 2015 16:09:00 +0800,
Yu Yang wrote:
> 
> From: Yu Yang <[email protected]>
> 
> There is a warning in vdi.c:
> shared/vdi.c:120:39: warning: declaration of 'write' shadows a global 
> declaration [-Wshadow]
> Change write to iswrite.
> 
> Signed-off-by: Yu Yang <[email protected]>
> ---
>  lib/shared/vdi.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.
Hitoshi

> 
> diff --git a/lib/shared/vdi.c b/lib/shared/vdi.c
> index d40bd4b..39b8acb 100644
> --- a/lib/shared/vdi.c
> +++ b/lib/shared/vdi.c
> @@ -117,7 +117,7 @@ static void free_request(struct sd_request *req)
>  }
>  
>  static struct sd_request *alloc_request(struct sd_vdi *vdi, void *buf,
> -                                     size_t count, off_t offset, bool write)
> +                     size_t count, off_t offset, bool iswrite)
>  {
>       struct sd_request *req;
>       int fd;
> @@ -130,7 +130,7 @@ static struct sd_request *alloc_request(struct sd_vdi 
> *vdi, void *buf,
>       req->data = buf;
>       req->length = count;
>       req->offset = offset;
> -     req->write = write;
> +     req->write = iswrite;
>       INIT_LIST_NODE(&req->list);
>       req->vdi = vdi;
>  
> -- 
> 1.7.9.5
> 
> -- 
> sheepdog mailing list
> [email protected]
> https://lists.wpkg.org/mailman/listinfo/sheepdog
-- 
sheepdog mailing list
[email protected]
https://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to