Re: [PATCH v4 4/5] lxc: Implement virDomainGetHostnameFlags

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

 



On Thu, Jan 09, 2020 at 01:45:59PM +0100, Michal Privoznik wrote:
> From: Julio Faracco <jcfaracco@xxxxxxxxx>
>
> Since there is no guest agent in LXC world (yet), we can
> implement _LEASE flag only.
>
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>


> +
> +        for (j = 0; j < n_leases; j++) {
> +            virNetworkDHCPLeasePtr lease = leases[j];
> +
> +            if (lease->hostname && !hostname)
> +                hostname = g_strdup(lease->hostname);

Same comment with using a break.

Reviewed-by: Erik Skultety <eskultet@xxxxxxxxxx>

--
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]

  Powered by Linux