mirror of
https://github.com/curl/curl.git
synced 2026-07-22 20:27:17 +03:00
examples/complicated: fix warnings, bump deprecated callback, tidy up
Also: make them C89, add consts. Closes #15785
This commit is contained in:
parent
fa0ccd9f1f
commit
37fb50a858
15 changed files with 199 additions and 132 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue