lib1948.c constify, drop UNCONST

This commit is contained in:
Viktor Szakats 2025-08-02 12:07:16 +02:00
parent 10999b41ba
commit 5ab35a494d
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -25,7 +25,7 @@
typedef struct
{
char *buf;
const char *buf;
size_t len;
} put_buffer;
@ -55,7 +55,7 @@ static CURLcode test_lib1948(const char *URL)
easy_setopt(curl, CURLOPT_UPLOAD, 1L);
easy_setopt(curl, CURLOPT_HEADER, 1L);
easy_setopt(curl, CURLOPT_READFUNCTION, put_callback);
pbuf.buf = (char *)CURL_UNCONST(testput);
pbuf.buf = testput;
pbuf.len = strlen(testput);
easy_setopt(curl, CURLOPT_READDATA, &pbuf);
easy_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(testput));