mirror of
https://github.com/curl/curl.git
synced 2026-07-24 11:47:16 +03:00
connect: silence sign-compare warning
With MinGW-w64 using WinSock, `curl_socklen_t` is signed, while the result of `sizeof` is unsigned. Closes https://github.com/curl/curl/pull/4483
This commit is contained in:
parent
07e987840c
commit
be16d8d994
1 changed files with 1 additions and 1 deletions
|
|
@ -665,7 +665,7 @@ bool Curl_addr2string(struct sockaddr *sa, curl_socklen_t salen,
|
|||
#endif
|
||||
#if defined(HAVE_SYS_UN_H) && defined(AF_UNIX)
|
||||
case AF_UNIX:
|
||||
if(salen > sizeof(sa_family_t)) {
|
||||
if(salen > (curl_socklen_t)sizeof(sa_family_t)) {
|
||||
su = (struct sockaddr_un*)sa;
|
||||
msnprintf(addr, MAX_IPADR_LEN, "%s", su->sun_path);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue