]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
connect: reduce number of transportation providers
authorMAntoniak <47522782+MAntoniak@users.noreply.github.com>
Fri, 1 Dec 2023 17:48:09 +0000 (18:48 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Dec 2023 22:14:07 +0000 (23:14 +0100)
Use only the ones necessary - the ones that are built-in. Saves a few
bytes in the resulting code.

Closes #12438

lib/connect.c

index c1e49ae29cd4aa4dc1ea005689c9af7f22e61861..ec5ab71d496650a81b37994f180c3cbe6d1a2152 100644 (file)
@@ -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)