]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix 'comparison of integer expressions of different signedness' warning
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 21 Oct 2022 09:30:30 +0000 (11:30 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 21 Oct 2022 09:30:30 +0000 (11:30 +0200)
commit65c3c599a22528f7f87875a72aedbd5a97708074
treecd947a7c6424d9e22136bdec064383d476a5a28e
parent0b6d634f65a591b80d5e7553f297563c5d2e8d58
dnsdist: Fix 'comparison of integer expressions of different signedness' warning

We are making sure that our computation will not overflow the maximum
value of a `time_t`, and we know that this maximum value is positive,
so we can use a `size_t` to do the comparison.
pdns/dnsdistdist/dnsdist-backend.cc