mirror of
https://github.com/curl/curl.git
synced 2026-07-26 06:27:32 +03:00
tidy-up: miscellaneous (cont.)
- examples: replace magic numbers with `sizeof()`. - typos: drop rules no longer needed after excluding tests/data. - typos: move an exception inline. - alpha-sort lists. - fix indentation, whitespace. Closes #18898
This commit is contained in:
parent
b12da22db1
commit
6f0e212f6e
17 changed files with 29 additions and 30 deletions
|
|
@ -69,7 +69,7 @@ static void add_download(const char *url, int num)
|
|||
FILE *file;
|
||||
CURL *handle;
|
||||
|
||||
snprintf(filename, 50, "%d.download", num);
|
||||
snprintf(filename, sizeof(filename), "%d.download", num);
|
||||
|
||||
file = fopen(filename, "wb");
|
||||
if(!file) {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ static void add_download(const char *url, int num, CURLM *multi)
|
|||
FILE *file;
|
||||
CURL *handle;
|
||||
|
||||
snprintf(filename, 50, "%d.download", num);
|
||||
snprintf(filename, sizeof(filename), "%d.download", num);
|
||||
|
||||
file = fopen(filename, "wb");
|
||||
if(!file) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue