mirror of
https://github.com/curl/curl.git
synced 2026-06-22 15:15:38 +03:00
lib1960.c unconst
```
home/runner/work/curl/curl/tests/libtest/lib1960.c:66:44: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual]
#define my_inet_pton(x, y, z) inet_pton(x, (unsigned char *)y, z)
^
/home/runner/work/curl/curl/tests/libtest/lib1960.c:107:6: note: in expansion of macro 'my_inet_pton'
if(my_inet_pton(AF_INET, libtest_arg2, &serv_addr.sin_addr) <= 0) {
^~~~~~~~~~~~
```
https://github.com/curl/curl/actions/runs/27428676624/job/81073057087
This commit is contained in:
parent
8509a66b82
commit
36afa2772f
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ static int sockopt_cb(void *clientp,
|
|||
}
|
||||
|
||||
#ifdef __AMIGA__
|
||||
#define my_inet_pton(x, y, z) inet_pton(x, (unsigned char *)y, z)
|
||||
#define my_inet_pton(x, y, z) inet_pton(x, (unsigned char *)CURL_UNCONST(y), z)
|
||||
#else
|
||||
#define my_inet_pton(x, y, z) inet_pton(x, y, z)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue