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:
Viktor Szakats 2026-06-12 18:43:04 +02:00
parent 8509a66b82
commit 36afa2772f
No known key found for this signature in database

View file

@ -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