sendf: Curl_client_write(), make passed in buf const

This commit is contained in:
Stefan Eissing 2024-02-06 12:10:19 +01:00 committed by Daniel Stenberg
parent e26c362544
commit 5b41fac587
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 3 additions and 3 deletions

View file

@ -296,7 +296,7 @@ static CURLcode chop_write(struct Curl_easy *data,
The defines are in sendf.h of course.
*/
CURLcode Curl_client_write(struct Curl_easy *data,
int type, char *buf, size_t blen)
int type, const char *buf, size_t blen)
{
CURLcode result;

View file

@ -55,7 +55,7 @@
* Write `len` bytes at `prt` to the client. `type` indicates what
* kind of data is being written.
*/
CURLcode Curl_client_write(struct Curl_easy *data, int type, char *ptr,
CURLcode Curl_client_write(struct Curl_easy *data, int type, const char *ptr,
size_t len) WARN_UNUSED_RESULT;
/**