← Commit list

0d68a05cc3

Viktor Szakats
Viktor Szakats
2026-09-03
SUCCESS Duration: 392s

Subject

curl_addrinfo: drop redundant parentheses

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/curl_addrinfo.c+2 -2
@@ -319,7 +319,7 @@ struct Curl_addrinfo *Curl_he2ai(const struct hostent *he, int port)
addr = (void *)ai->ai_addr; /* storage area for this info */
memcpy(&addr->sin_addr, curr, sizeof(struct in_addr));
- addr->sin_family = (CURL_SA_FAMILY_T)(he->h_addrtype);
+ addr->sin_family = (CURL_SA_FAMILY_T)he->h_addrtype;
addr->sin_port = htons((unsigned short)port);
break;
@@ -328,7 +328,7 @@ struct Curl_addrinfo *Curl_he2ai(const struct hostent *he, int port)
addr6 = (void *)ai->ai_addr; /* storage area for this info */
memcpy(&addr6->sin6_addr, curr, sizeof(struct in6_addr));
- addr6->sin6_family = (CURL_SA_FAMILY_T)(he->h_addrtype);
+ addr6->sin6_family = (CURL_SA_FAMILY_T)he->h_addrtype;
addr6->sin6_port = htons((unsigned short)port);
break;
#endif