[libvirt] [PATCH] Replacing for (; ; ) with while (1) for better code.
Martin Kletzander
mkletzan at redhat.com
Fri Sep 23 08:28:27 UTC 2016
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...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160923/7f64a79b/attachment-0001.sig>
More information about the libvir-list
mailing list