mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:53:31 +03:00
cleanup: make local functions static
urlapi: turn three local-only functions into statics conncache: make conncache_find_first_connection static multi: make detach_connnection static connect: make getaddressinfo static curl_ntlm_core: make hmac_md5 static http2: make two functions static http: make http_setup_conn static connect: make tcpnodelay static tests: make UNITTEST a thing to mark functions with, so they can be static for normal builds and non-static for unit test builds ... and mark Curl_shuffle_addr accordingly. url: make up_free static setopt: make vsetopt static curl_endian: make write32_le static rtsp: make rtsp_connisdead static warnless: remove unused functions memdebug: remove one unused function, made another static
This commit is contained in:
parent
9a36c0ae21
commit
05b100aee2
22 changed files with 103 additions and 160 deletions
|
|
@ -111,8 +111,8 @@ static CURLcode setstropt_userpwd(char *option, char **userp, char **passwdp)
|
|||
#define C_SSLVERSION_VALUE(x) (x & 0xffff)
|
||||
#define C_SSLVERSION_MAX_VALUE(x) (x & 0xffff0000)
|
||||
|
||||
CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option,
|
||||
va_list param)
|
||||
static CURLcode vsetopt(struct Curl_easy *data, CURLoption option,
|
||||
va_list param)
|
||||
{
|
||||
char *argptr;
|
||||
CURLcode result = CURLE_OK;
|
||||
|
|
@ -2679,7 +2679,7 @@ CURLcode curl_easy_setopt(struct Curl_easy *data, CURLoption tag, ...)
|
|||
|
||||
va_start(arg, tag);
|
||||
|
||||
result = Curl_vsetopt(data, tag, arg);
|
||||
result = vsetopt(data, tag, arg);
|
||||
|
||||
va_end(arg);
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue