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:
Viktor Szakats 2026-02-01 03:57:45 +01:00
parent 66bb641331
commit 9630593650
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
111 changed files with 278 additions and 268 deletions

View file

@ -73,15 +73,15 @@ static size_t read_cb(char *ptr, size_t size, size_t nmemb, void *stream)
return retcode;
}
int main(int argc, char **argv)
int main(int argc, const char **argv)
{
CURL *curl;
CURLcode result;
FILE *hd_src;
struct stat file_info;
char *file;
char *url;
const char *file;
const char *url;
if(argc < 3)
return 1;