annotations, indent
authorPierre Habouzit <madcoder@debian.org>
Fri, 11 Jan 2008 22:14:04 +0000 (23:14 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 11 Jan 2008 22:14:04 +0000 (23:14 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
lib-sys/evtloop.c
lib-sys/evtloop.h

index ed9eca5..1991646 100644 (file)
@@ -194,13 +194,13 @@ int el_dispatch(int timeout)
             if (event & EPOLLRDHUP) {
                 IGNORE(el_job_release(w, EL_RDHUP));
             } else if (w->mode != w->emode) {
-                    w->m->on_event(w, EL_EVT_INOUT ^ w->emode);
+                IGNORE(w->m->on_event(w, EL_EVT_INOUT ^ w->emode));
             } else {
                 if (event & EPOLLIN)
                     evt |= EL_EVT_IN;
                 if (event & EPOLLOUT)
                     evt |= EL_EVT_OUT;
-                w->m->on_event(w, evt);
+                IGNORE(w->m->on_event(w, evt));
             }
             break;
 
index 3e7458a..b64942e 100644 (file)
@@ -74,7 +74,7 @@ DO_DELETE(job_t, job);
 typedef struct machine_t {
     const char *name;
     __must_check__ int (*setup)(job_t *w, void *);
-    int (*on_event)(job_t *w, el_event);
+    __must_check__ int (*on_event)(job_t *w, el_event);
     void (*finalize)(job_t *w, el_status);
 } machine_t;