mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -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);
|
||||
|
||||
file = fopen(filename, "w");
|
||||
if (file == NULL) {
|
||||
if(!file) {
|
||||
fprintf(stderr, "Error opening %s\n", filename);
|
||||
return;
|
||||
}
|
||||
@ -225,5 +225,6 @@ int main(int argc, char **argv)
|
||||
|
||||
uv_run(loop, UV_RUN_DEFAULT);
|
||||
curl_multi_cleanup(curl_handle);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user