From d94202dacb48763bae1b3e1d54449404bcc277a3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 4 Feb 2015 23:22:46 +1100 Subject: [PATCH] Avoid one cast --- src/connector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/connector.c b/src/connector.c index 73866421..e779e7de 100644 --- a/src/connector.c +++ b/src/connector.c @@ -377,8 +377,9 @@ reparse: void *receiver(void *arg) { cdata_t *cdata = (cdata_t *)arg; - int ret, epfd, i, serverfds; struct epoll_event event; + uint64_t serverfds, i; + int ret, epfd; rename_proc("creceiver"); @@ -421,7 +422,7 @@ void *receiver(void *arg) /* Nothing to service, still very unlikely */ continue; } - if (event.data.u64 < (uint64_t)serverfds) { + if (event.data.u64 < serverfds) { ret = accept_client(cdata, epfd, event.data.u64); if (unlikely(ret < 0)) { LOGEMERG("FATAL: Failed to accept_client in receiver");