[libvirt] [PATCH] Xen: Do not generate net ifname if domain is inactive

Eric Blake eblake at redhat.com
Thu Apr 28 20:47:48 UTC 2011


On 04/28/2011 02:45 PM, Jim Fehlig wrote:
>> Rather than using snprintf and strdup, can't we just use:
>>
>> if (virAsprintf(&net->ifname, "vif%d.%d", def->id, vif_index) < 0)
>>     goto no_memory;
>>   
> 
> Yes, good point.  Here is a V2.

ACK.

-- 
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/20110428/5182c249/attachment-0001.sig>


More information about the libvir-list mailing list