cvs commit: src/sys/dev/ed if_ed.c

M. Warner Losh imp at bsdimp.com
Fri Feb 11 00:32:08 GMT 2005


In message: <200502110109.55898.max at love2party.net>
            Max Laier <max at love2party.net> writes:
: On Friday 11 February 2005 00:59, Dag-Erling Smørgrav wrote:
: > Warner Losh <imp at FreeBSD.org> writes:
: > >   Log:
: > >   use
: > >           while (complicated-expr)
: > >                   continune;
: > >   in preference to
: > >           while (complicated-expr);
: >
: > As a matter of taste, I prefer /* nothing */ to continue in cases like
: > this.
: 
: That's what style.9 suggests, btw:
: |             for (p = buf; *p != '\0'; ++p)
: |                     ;       /* nothing */

It also says forever loops are done with for, not while, just before.
Clearly, this isn't a forever loop, nor is the example.

Warner


More information about the cvs-all mailing list