mirror of
https://github.com/curl/curl.git
synced 2026-08-05 14:26:15 +03:00
tidy-up: replace (1 == expressions pton
This commit is contained in:
parent
4034bc7ebf
commit
29e22ef65b
4 changed files with 6 additions and 6 deletions
|
|
@ -884,7 +884,7 @@ CONNECT_RESOLVE_REMOTE:
|
|||
}
|
||||
else
|
||||
#endif
|
||||
if(1 == curlx_inet_pton(AF_INET, sx->hostname, ip4)) {
|
||||
if(curlx_inet_pton(AF_INET, sx->hostname, ip4) == 1) {
|
||||
socksreq[len++] = 1;
|
||||
memcpy(&socksreq[len], ip4, sizeof(ip4));
|
||||
len += sizeof(ip4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue