mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:01:41 +03:00
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:
parent
34cdd4e118
commit
9f4f61ddcb
4 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue