diff options
author | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:15 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2013-03-04 02:21:15 +0000 |
commit | 229e6c166677faa7fb2ebb61f7184420fd6a63e2 (patch) | |
tree | 50bf6b922fe8d4e79a96ec8032fb4f567056f22e /sbin/devd | |
parent | 8f1c733aff0017da90fc3540141effc306d8f6a0 (diff) | |
download | FreeBSD-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.cc | 4 |
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; |