]> git.ipfire.org Git - thirdparty/curl.git/commit
config-win32.h: do not use winsock2 `inet_ntop()`/`inet_pton()`
authorViktor Szakats <commit@vsz.me>
Sun, 27 Jul 2025 22:22:36 +0000 (00:22 +0200)
committerViktor Szakats <commit@vsz.me>
Sun, 27 Jul 2025 23:51:55 +0000 (01:51 +0200)
commit36af5cceb11f0b8757a5a4fcdcc1974f6b3cda2f
tree2ac4d8296d60b2afb0a81b9f7b31b35a12434717
parent061c81904fc13839b8e8c3c14b28dace4f7a5aaa
config-win32.h: do not use winsock2 `inet_ntop()`/`inet_pton()`

Syncing winbuild and VS Project File builds with the same fix applied
to cmake and autotools builds earlier.

Also fixes these warnings seen in the VisualStudioSolution (VS2013) job
on AppVeyor CI:
```
lib\hostip.c(148): warning C4090: 'function' : different 'const' qualifiers
lib\hostip.c(155): warning C4090: 'function' : different 'const' qualifiers
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/52470650/job/gslnjrdxnd8b9mtv#L180

Went unnoticed because warnings are not promoted to error in these builds.
winbuild CI jobs did not hit this warning for some reason.

Follow-up to 8537a5b0bcf4565551774c2b2375c49767e405a7 #16577
Closes #18045
lib/config-win32.h