From 6f023e5990d3a9c125aeae09fd7326cfe7df073b Mon Sep 17 00:00:00 2001 From: Soner Tari Date: Sun, 11 Mar 2018 14:57:58 +0300 Subject: [PATCH] Avoid comparison between signed and unsigned integer, reported by @janusloo on Linux DietPi 4.14.22-v7+ #1096 SMP Mon Feb 26 19:14:22 GMT 2018 armv7l GNU/Linux, I don't see such warnings on 64-bit OpenBSD or Linux though, even with -Wsign-compare --- pxythrmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pxythrmgr.c b/pxythrmgr.c index cea10cd..ac2f87f 100644 --- a/pxythrmgr.c +++ b/pxythrmgr.c @@ -58,7 +58,7 @@ pxy_thrmgr_get_thr_expired_conns(pxy_thr_ctx_t *tctx, pxy_conn_ctx_t **expired_c pxy_conn_ctx_t *ctx = tctx->conns; while (ctx) { time_t elapsed_time = now - ctx->atime; - if (elapsed_time > tctx->thrmgr->opts->conn_idle_timeout) { + if (elapsed_time > (time_t)tctx->thrmgr->opts->conn_idle_timeout) { ctx->next_expired = *expired_conns; *expired_conns = ctx; }