Re: [Qemu-devel] [PATCH 3/6] QDict: Introduce qdict_copy()

2012-02-15 Thread Luiz Capitulino
On Wed, 15 Feb 2012 14:10:32 +0100 Juan Quintela wrote: > Luiz Capitulino wrote: > > Signed-off-by: Luiz Capitulino > > > > /** > > + * qdict_copy(): Build a new dictionary from an existing one. > > + */ > > +QDict *qdict_copy(const QDict *from) > > +{ > > +const QDictEntry *ent; > > +

Re: [Qemu-devel] [PATCH 3/6] QDict: Introduce qdict_copy()

2012-02-15 Thread Juan Quintela
Luiz Capitulino wrote: > Signed-off-by: Luiz Capitulino > /** > + * qdict_copy(): Build a new dictionary from an existing one. > + */ > +QDict *qdict_copy(const QDict *from) > +{ > +const QDictEntry *ent; > +QDict *new; > + > +new = qdict_new(); > + > +for (ent = qdict_first(fr