[libvirt] Re: remote_protocol.{c,h} ?

Richard W.M. Jones rjones at redhat.com
Wed Sep 3 11:43:23 UTC 2008


On Wed, Sep 03, 2008 at 02:33:09PM +0900, Jun Koi wrote:
> I looked again, and see that we can generate remote_protocol.c from
> rpcgen. Currently it seems remote_protocol.c is hacked a bit to remove
> some unused stack variables? Why do we need to do such a thing, while
> compiler can optimize that for us?

It's just to remove some compiler warnings, and possibly some real
problems.  The code generated by glibc rpcgen contains type punning
issues.

  http://en.wikipedia.org/wiki/Type_punning

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://et.redhat.com/~rjones/virt-top




More information about the libvir-list mailing list