mirror of
https://github.com/moparisthebest/curl
synced 2025-01-08 12:28:06 -05:00
multi-uv.c: Updated for curl coding standards
This commit is contained in:
parent
34cb17b930
commit
804e462305
@ -83,7 +83,7 @@ void add_download(const char *url, int num)
|
|||||||
sprintf(filename, "%d.download", num);
|
sprintf(filename, "%d.download", num);
|
||||||
|
|
||||||
file = fopen(filename, "w");
|
file = fopen(filename, "w");
|
||||||
if (file == NULL) {
|
if(!file) {
|
||||||
fprintf(stderr, "Error opening %s\n", filename);
|
fprintf(stderr, "Error opening %s\n", filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -225,5 +225,6 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
uv_run(loop, UV_RUN_DEFAULT);
|
uv_run(loop, UV_RUN_DEFAULT);
|
||||||
curl_multi_cleanup(curl_handle);
|
curl_multi_cleanup(curl_handle);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user