svn commit: r247756 - head/sbin/devd
Eitan Adler
eadler at FreeBSD.org
Mon Mar 4 02:21:17 UTC 2013
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.mallon at 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;
More information about the svn-src-all
mailing list