summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/eloop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eloop.c b/src/eloop.c
index 8fd31307..33177667 100644
--- a/src/eloop.c
+++ b/src/eloop.c
@@ -703,7 +703,6 @@ eloop_forked(struct eloop *eloop)
#if defined(HAVE_KQUEUE)
struct kevent *pfds, *pfd;
size_t i;
- int error;
#elif defined(HAVE_EPOLL)
struct epoll_event epe = { .events = 0 };
#endif
@@ -758,7 +757,7 @@ eloop_forked(struct eloop *eloop)
#if defined(HAVE_KQUEUE)
if (i == 0)
return 0;
- error = _kevent(eloop->fd, pfds, i, NULL, 0, NULL);
+ return _kevent(eloop->fd, pfds, i, NULL, 0, NULL);
#else
return 0;
#endif