[libvirt] [PATCH 3/3] Remove wrong check for uml monitor response size

Eric Blake eblake at redhat.com
Mon Aug 16 19:57:23 UTC 2010


On 08/16/2010 03:37 AM, Soren Hansen wrote:
>          nbytes = recvfrom(priv->monitor, &res, sizeof res, 0,
>                            (struct sockaddr *)&addr, &addrlen);
> +        VIR_DEBUG("nbytes: %d", nbytes);

User error, not a kernel bug.  Phew.

%d and ssize_t are not always compatible sizes.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100816/433ed8b9/attachment-0001.sig>


More information about the libvir-list mailing list