lib: add const to clientwriter tables

Unlike the connection filter tables that hold a writable log level, the
client writer tables can be const.
This commit is contained in:
Dan Fandrich 2025-04-03 12:42:06 -07:00
parent 34cdd4e118
commit 9f4f61ddcb
4 changed files with 4 additions and 4 deletions

View file

@ -114,7 +114,7 @@ static void cw_out_close(struct Curl_easy *data, struct Curl_cwriter *writer);
static CURLcode cw_out_init(struct Curl_easy *data,
struct Curl_cwriter *writer);
struct Curl_cwtype Curl_cwt_out = {
const struct Curl_cwtype Curl_cwt_out = {
"cw-out",
NULL,
cw_out_init,

View file

@ -33,7 +33,7 @@
* the client callbacks. Intended to be the last installed in the
* client writer stack of a transfer.
*/
extern struct Curl_cwtype Curl_cwt_out;
extern const struct Curl_cwtype Curl_cwt_out;
/**
* Return TRUE iff 'cw-out' client write has paused data.

View file

@ -87,7 +87,7 @@ static void cw_pause_close(struct Curl_easy *data,
static CURLcode cw_pause_init(struct Curl_easy *data,
struct Curl_cwriter *writer);
struct Curl_cwtype Curl_cwt_pause = {
const struct Curl_cwtype Curl_cwt_pause = {
"cw-pause",
NULL,
cw_pause_init,

View file

@ -32,7 +32,7 @@
* The client writer type "cw-pause" that buffers writes for
* paused transfer writes.
*/
extern struct Curl_cwtype Curl_cwt_pause;
extern const struct Curl_cwtype Curl_cwt_pause;
CURLcode Curl_cw_pause_flush(struct Curl_easy *data);