From: Daniel Stenberg Date: Thu, 18 May 2023 23:02:28 +0000 (+0200) Subject: vquic.c: make recvfrom_packets static, avoid compiler warning X-Git-Tag: curl-8_1_1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4bcc6ede45dc560b6fe68671fd256032b738e9;p=thirdparty%2Fcurl.git vquic.c: make recvfrom_packets static, avoid compiler warning warning: no previous prototype for 'recvfrom_packets' Reported-by: Keitagit-kun on github Fixes #11146 Closes #11148 --- diff --git a/lib/vquic/vquic.c b/lib/vquic/vquic.c index a51ebfa7d9..19ee3f4d37 100644 --- a/lib/vquic/vquic.c +++ b/lib/vquic/vquic.c @@ -431,11 +431,11 @@ out: } #else /* HAVE_SENDMMSG || HAVE_SENDMSG */ -CURLcode recvfrom_packets(struct Curl_cfilter *cf, - struct Curl_easy *data, - struct cf_quic_ctx *qctx, - size_t max_pkts, - vquic_recv_pkt_cb *recv_cb, void *userp) +static CURLcode recvfrom_packets(struct Curl_cfilter *cf, + struct Curl_easy *data, + struct cf_quic_ctx *qctx, + size_t max_pkts, + vquic_recv_pkt_cb *recv_cb, void *userp) { uint8_t buf[64*1024]; int bufsize = (int)sizeof(buf);