mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:43:32 +03:00
tidy-up: replace (1 != expressions 2
This commit is contained in:
parent
3b75d69dbb
commit
4034bc7ebf
4 changed files with 7 additions and 7 deletions
|
|
@ -511,7 +511,7 @@ static CURLUcode ipv6_parse(struct Curl_URL *u, char *hostname,
|
|||
{
|
||||
char dest[16]; /* fits a binary IPv6 address */
|
||||
hostname[hlen] = 0; /* end the address there */
|
||||
if(1 != curlx_inet_pton(AF_INET6, hostname, dest))
|
||||
if(curlx_inet_pton(AF_INET6, hostname, dest) != 1)
|
||||
return CURLUE_BAD_IPV6;
|
||||
if(curlx_inet_ntop(AF_INET6, dest, hostname, hlen)) {
|
||||
hlen = strlen(hostname); /* might be shorter now */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue