[libvirt] [libvirt-gconfig PATCHv2 13/32] Add gobject boilerplate for GVirConfigOs

Christophe Fergeau cfergeau at redhat.com
Wed Nov 23 12:06:02 UTC 2011


On Tue, Nov 22, 2011 at 01:01:17PM +0000, Daniel P. Berrange wrote:
> On Mon, Nov 21, 2011 at 07:04:10PM +0100, Christophe Fergeau wrote:
> > +static void gvir_config_os_init(GVirConfigOs *os)
> > +{
> > +    GVirConfigOsPrivate *priv;
> > +
> > +    DEBUG("Init GVirConfigOs=%p", os);
> > +
> > +    priv = os->priv = GVIR_CONFIG_OS_GET_PRIVATE(os);
> > +
> > +    memset(priv, 0, sizeof(*priv));
> > +}
> 
> Can drop the memset() since we previously figured out we don't need that.

Dropped everywhere in an additional patch in v3

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111123/67fb23aa/attachment-0001.sig>


More information about the libvir-list mailing list