mirror of
https://github.com/curl/curl.git
synced 2026-08-26 22:54:11 +03:00
tool: use errorf() for error output
Convert a number of fprintf() calls.
This commit is contained in:
parent
6d45b9ca9c
commit
741f7ed4bc
10 changed files with 38 additions and 37 deletions
|
|
@ -261,13 +261,13 @@ int main(int argc, char *argv[])
|
|||
/* win32_init must be called before other init routines. */
|
||||
result = win32_init();
|
||||
if(result) {
|
||||
fprintf(stderr, "curl: (%d) Windows-specific init failed.\n", result);
|
||||
errorf(&global, "(%d) Windows-specific init failed", result);
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(main_checkfds()) {
|
||||
fprintf(stderr, "curl: out of file descriptors\n");
|
||||
errorf(&global, "out of file descriptors");
|
||||
return CURLE_FAILED_INIT;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue