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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]