mirror of
https://github.com/curl/curl.git
synced 2026-08-26 19:53:31 +03:00
build: use more const
Mostly with `char *` types. Also: - mime, x509asn1, tool_operate, lib3207: drop redundant casts. - examples/smooth-gtk-thread: add missing variable declaration. - reduce variable scopes. - tests/server: move `data_to_hex()` to its only user: `sws`. Closes #20489
This commit is contained in:
parent
66bb641331
commit
9630593650
111 changed files with 278 additions and 268 deletions
|
|
@ -172,7 +172,7 @@ static int server_push_callback(CURL *parent,
|
|||
struct curl_pushheaders *headers,
|
||||
void *userp)
|
||||
{
|
||||
char *headp;
|
||||
const char *headp;
|
||||
size_t i;
|
||||
int *transfers = (int *)userp;
|
||||
char filename[128];
|
||||
|
|
@ -214,7 +214,7 @@ static int server_push_callback(CURL *parent,
|
|||
/*
|
||||
* Download a file over HTTP/2, take care of server push.
|
||||
*/
|
||||
int main(int argc, char *argv[])
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
CURLcode result;
|
||||
CURL *curl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue