--- src/run.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/run.c b/src/run.c index 2d51ca1..b24cd9b 100644 --- a/src/run.c +++ b/src/run.c @@ -158,7 +158,7 @@ init(void) return 0; } -static int __run(struct timeval *next_alarm) +static void __run(struct timeval *next_alarm) { int max, ret; fd_set readfds; @@ -176,11 +176,11 @@ static int __run(struct timeval *next_alarm) if (ret == -1) { /* interrupted syscall, retry */ if (errno == EINTR) - return 0; + return; dlog(LOG_WARNING, "select failed: %s", strerror(errno)); - return 0; + return; } /* signals are racy */ @@ -227,8 +227,6 @@ static int __run(struct timeval *next_alarm) STATE(mode)->run(&readfds); sigprocmask(SIG_UNBLOCK, &STATE(block), NULL); - - return 0; } void __attribute__((noreturn)) - To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html