From 77d31d8584624e4c4406482ff24658bdcb6432a0 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sun, 1 Jul 2018 18:51:19 -0400 Subject: [PATCH] [mod_wstunnel] quiet 32-bit compiler warnings --- src/mod_wstunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c index 1e49499f..cff378a6 100644 --- a/src/mod_wstunnel.c +++ b/src/mod_wstunnel.c @@ -424,7 +424,7 @@ static int wstunnel_is_allowed_origin(connection *con, handler_ctx *hctx) { * Note that origin provided in request header has not been normalized, so * change in case or other non-normal forms might not match allowed list */ const array * const allowed_origins = hctx->conf.origins; - buffer *origin; + buffer *origin = NULL; size_t olen; data_string *dsorigin; @@ -644,7 +644,7 @@ TRIGGER_FUNC(mod_wstunnel_handle_trigger) { if (0 != hctx->hybivers && hctx->conf.ping_interval > 0 - && hctx->conf.ping_interval + hctx->ping_ts < cur_ts) { + && (time_t)hctx->conf.ping_interval + hctx->ping_ts < cur_ts) { hctx->ping_ts = cur_ts; mod_wstunnel_frame_send(hctx, MOD_WEBSOCKET_FRAME_TYPE_PING, CONST_STR_LEN("ping")); joblist_append(srv, con);