From 1edb67807a6fbbf3f77c95f71e829330b707902d 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] Reduce the number of transportation providers. Use only when necessary. This saves a few bytes in the resulting code. --- lib/connect.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/connect.c b/lib/connect.c index c1e49ae29cd..ec5ab71d496 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)