From f9c72a01c843de54550ba164de313e43c3cff705 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 17 Dec 2022 15:02:12 +0100 Subject: [PATCH] Minor, coding style Signed-off-by: Joachim Wiberg --- src/uev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uev.c b/src/uev.c index 5d23a75..10d025f 100644 --- a/src/uev.c +++ b/src/uev.c @@ -295,8 +295,8 @@ int uev_exit(uev_ctx_t *ctx) */ int uev_run(uev_ctx_t *ctx, int flags) { - uev_t *w; int timeout = -1; + uev_t *w; if (!ctx || ctx->fd < 0) { errno = EINVAL; @@ -356,9 +356,9 @@ int uev_run(uev_ctx_t *ctx, int flags) for (i = 0; ctx->running && i < nfds; i++) { struct signalfd_siginfo fdsi; + ssize_t sz = sizeof(fdsi); uint32_t events; uint64_t exp; - ssize_t sz = sizeof(fdsi); w = (uev_t *)ee[i].data.ptr; events = ee[i].events;