connect: reduce number of transportation providers
Use only the ones necessary - the ones that are built-in. Saves a few bytes in the resulting code. Closes #12438
This commit is contained in:
Родитель
56791f3e23
Коммит
0eda1f6c9f
|
@ -1129,8 +1129,12 @@ struct transport_provider transport_providers[] = {
|
|||
#ifdef ENABLE_QUIC
|
||||
{ TRNSPRT_QUIC, Curl_cf_quic_create },
|
||||
#endif
|
||||
#ifndef CURL_DISABLE_TFTP
|
||||
{ TRNSPRT_UDP, Curl_cf_udp_create },
|
||||
#endif
|
||||
#ifdef USE_UNIX_SOCKETS
|
||||
{ TRNSPRT_UNIX, Curl_cf_unix_create },
|
||||
#endif
|
||||
};
|
||||
|
||||
static cf_ip_connect_create *get_cf_create(int transport)
|
||||
|
|
Загрузка…
Ссылка в новой задаче