mirror of
https://github.com/curl/curl.git
synced 2026-07-28 17:43:07 +03:00
config2setopt.c: refactor config2setopts
Introduce sub functions Closes #22215
This commit is contained in:
parent
7791b1629b
commit
8aeef462e3
9 changed files with 172 additions and 109 deletions
|
|
@ -712,11 +712,3 @@ CURLcode tool_setopt_str(CURL *curl, struct OperationConfig *config,
|
|||
}
|
||||
|
||||
#endif /* CURL_DISABLE_LIBCURL_OPTION */
|
||||
|
||||
/* return TRUE if the error code is "lethal" */
|
||||
bool setopt_bad(CURLcode result)
|
||||
{
|
||||
return result &&
|
||||
(result != CURLE_NOT_BUILT_IN) &&
|
||||
(result != CURLE_UNKNOWN_OPTION);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue