Author: eadler
Date: Mon Mar  4 02:21:15 2013
New Revision: 247756
URL: http://svnweb.freebsd.org/changeset/base/247756

Log:
  devd: Simplify while (1) { if (x) break; } to while (!x) {}.
  
  Submitted by: Christoph Mallon <christoph.mal...@gmx.de>
  Approved by:  cperciva (mentor)

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc      Mon Mar  4 02:21:12 2013        (r247755)
+++ head/sbin/devd/devd.cc      Mon Mar  4 02:21:15 2013        (r247756)
@@ -912,9 +912,7 @@ event_loop(void)
        server_fd = create_socket(PIPE);
        accepting = 1;
        max_fd = max(fd, server_fd) + 1;
-       while (1) {
-               if (romeo_must_die)
-                       break;
+       while (!romeo_must_die) {
                if (!once && !dflag && !nflag) {
                        // Check to see if we have any events pending.
                        tv.tv_sec = 0;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to