From 0eda1f6c9f94b5ead1981f1510f1938ef3c0784b Mon Sep 17 00:00:00 2001 From: MAntoniak <47522782+MAntoniak@users.noreply.github.com> Date: Fri, 1 Dec 2023 18:48:09 +0100 Subject: [PATCH] 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 --- lib/connect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index c1e49ae29c..ec5ab71d49 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -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) -- 2.47.3