mirror of
https://github.com/curl/curl.git
synced 2026-08-24 23:43:40 +03:00
lib1948.c constify, drop UNCONST
This commit is contained in:
parent
10999b41ba
commit
5ab35a494d
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue