summaryrefslogtreecommitdiff
path: root/docs/examples/multithread.c
diff options
context:
space:
mode:
authorViktor Szakats <commit@vsz.me>2024-12-20 02:00:22 +0100
committerViktor Szakats <commit@vsz.me>2024-12-20 17:56:35 +0100
commit37fb50a858921846a7bbb4428cc4b2bb66e182af (patch)
treeb0581e0407c7e2343e7cfee70b86da2da0504b50 /docs/examples/multithread.c
parentfa0ccd9f1fbbbd77bf50b26e3ba231ea6c729474 (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.c4
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;