Skip to content

Commit

Permalink
Reduce the number of transportation providers. Use only when necessar…
Browse files Browse the repository at this point in the history
…y. This saves a few bytes in the resulting code.
  • Loading branch information
MAntoniak committed Dec 1, 2023
1 parent f5ba531 commit 1edb678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1edb678

Please sign in to comment.