summaryrefslogtreecommitdiffstats
path: root/sbin/devd
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-03-04 02:21:15 +0000
committereadler <eadler@FreeBSD.org>2013-03-04 02:21:15 +0000
commit229e6c166677faa7fb2ebb61f7184420fd6a63e2 (patch)
tree50bf6b922fe8d4e79a96ec8032fb4f567056f22e /sbin/devd
parent8f1c733aff0017da90fc3540141effc306d8f6a0 (diff)
downloadFreeBSD-src-229e6c166677faa7fb2ebb61f7184420fd6a63e2.zip
FreeBSD-src-229e6c166677faa7fb2ebb61f7184420fd6a63e2.tar.gz
devd: Simplify while (1) { if (x) break; } to while (!x) {}.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Approved by: cperciva (mentor)
Diffstat (limited to 'sbin/devd')
-rw-r--r--sbin/devd/devd.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/devd/devd.cc b/sbin/devd/devd.cc
index 2e8d2c1..e1a52fc 100644
--- a/sbin/devd/devd.cc
+++ b/sbin/devd/devd.cc
@@ -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;
OpenPOWER on IntegriCloud