[ovs-dev] [PATCH 2/4] datapath: Fix warning on 64-bit builds.

Justin Pettit jpettit at nicira.com
Thu Oct 15 00:53:26 UTC 2009


Looks good.

--Justin


On Oct 12, 2009, at 11:14 AM, Ben Pfaff wrote:

> ---
> datapath/datapath.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/datapath/datapath.c b/datapath/datapath.c
> index 756d86b..abc5599 100644
> --- a/datapath/datapath.c
> +++ b/datapath/datapath.c
> @@ -1561,7 +1561,7 @@ ssize_t openvswitch_read(struct file *f, char  
> __user *buf, size_t nbytes,
> 		}
> 	}
> success:
> -	copy_bytes = min(skb->len, nbytes);
> +	copy_bytes = min_t(size_t, skb->len, nbytes);
> 	iov.iov_base = buf;
> 	iov.iov_len = copy_bytes;
> 	retval = skb_copy_datagram_iovec(skb, 0, &iov, iov.iov_len);
> -- 
> 1.6.3.3
>
>
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev_openvswitch.org





More information about the dev mailing list