tidy-up: move literal to the right side of comparisons

Closes #17876
This commit is contained in:
Viktor Szakats 2025-07-08 14:10:35 +02:00
parent 08f97cbf5c
commit b2bccdc257
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
49 changed files with 113 additions and 113 deletions

View file

@ -260,11 +260,11 @@ static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
#ifdef USE_IPV6
else {
char ipv6_unused[16];
if(1 == curlx_inet_pton(AF_INET6, as->dst.host, ipv6_unused)) {
if(curlx_inet_pton(AF_INET6, as->dst.host, ipv6_unused) == 1) {
dst6_pre = "[";
dst6_post = "]";
}
if(1 == curlx_inet_pton(AF_INET6, as->src.host, ipv6_unused)) {
if(curlx_inet_pton(AF_INET6, as->src.host, ipv6_unused) == 1) {
src6_pre = "[";
src6_post = "]";
}