diff options
author | Viktor Szakats <commit@vsz.me> | 2024-12-20 02:00:22 +0100 |
---|---|---|
committer | Viktor Szakats <commit@vsz.me> | 2024-12-20 17:56:35 +0100 |
commit | 37fb50a858921846a7bbb4428cc4b2bb66e182af (patch) | |
tree | b0581e0407c7e2343e7cfee70b86da2da0504b50 /docs/examples/multithread.c | |
parent | fa0ccd9f1fbbbd77bf50b26e3ba231ea6c729474 (diff) |
examples/complicated: fix warnings, bump deprecated callback, tidy up
Also: make them C89, add consts.
Closes #15785
Diffstat (limited to 'docs/examples/multithread.c')
-rw-r--r-- | docs/examples/multithread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/multithread.c b/docs/examples/multithread.c index 299edd57a..3b500c765 100644 --- a/docs/examples/multithread.c +++ b/docs/examples/multithread.c @@ -41,7 +41,7 @@ https://curl.se/libcurl/c/threadsafe.html */ -const char * const urls[NUMT]= { +static const char * const urls[NUMT]= { "https://curl.se/", "ftp://example.com/", "https://example.net/", @@ -67,7 +67,7 @@ static void *pull_one_url(void *url) void * (*start_func)(void *), void *arg); */ -int main(int argc, char **argv) +int main(void) { pthread_t tid[NUMT]; int i; |