Re: [PATCH] Replacing for (; ; ) with while (1) for better code.

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

 



Sure. I just read it in hacking.html and thought of sending this patch.

On Fri, Sep 23, 2016 at 1:58 PM, Martin Kletzander <mkletzan@xxxxxxxxxx> wrote:
On Fri, Sep 23, 2016 at 01:17:40AM +0530, Nitesh Konkar wrote:
As mentioned in https://libvirt.org/hacking.html,
using while (1) is better than for (;;).

I feel like there was a reason for not forbidding it (and also adding an
exception for it in build-aux/check-spacing.pl, but I can't remember
that.  Maybe someone else will chime in or try finding the resons for
that in archives/git logs...

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