From 873b09c7fa7ecb53f181f3f5a79906442f22aec2 Mon Sep 17 00:00:00 2001 From: Brad House Date: Mon, 4 Dec 2023 08:29:43 -0500 Subject: [PATCH] silence openwatcom warning due to qcache_max_ttl being unsigned --- src/lib/ares_options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/ares_options.c b/src/lib/ares_options.c index f34561bf..649487dd 100644 --- a/src/lib/ares_options.c +++ b/src/lib/ares_options.c @@ -435,7 +435,8 @@ ares_status_t ares__init_by_options(ares_channel_t *channel, } if (optmask & ARES_OPT_QUERY_CACHE) { - if (options->qcache_max_ttl <= 0) { + /* qcache_max_ttl is unsigned unlike the others */ + if (options->qcache_max_ttl == 0) { optmask &= ~(ARES_OPT_QUERY_CACHE); } else { channel->qcache_max_ttl = options->qcache_max_ttl;