]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix logic
authorRoy Marples <roy@marples.name>
Fri, 17 May 2013 23:21:56 +0000 (23:21 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 May 2013 23:21:56 +0000 (23:21 +0000)
eloop.c

diff --git a/eloop.c b/eloop.c
index 506ad77ede29f8872ed55ad31b3cd811f054481e..7f7364cd23d39dab56ea78f5146519e491b37efb 100644 (file)
--- a/eloop.c
+++ b/eloop.c
@@ -372,7 +372,7 @@ eloop_start(const sigset_t *sigmask)
                /* Process any triggered events. */
                if (n > 0) {
                        TAILQ_FOREACH(e, &events, next) {
-                               if (e->pollfd->revents & (POLLIN || POLLHUP)) {
+                               if (e->pollfd->revents & (POLLIN | POLLHUP)) {
                                        e->callback(e->arg);
                                        /* We need to break here as the
                                         * callback could destroy the next