From 5b4bcc6ede45dc560b6fe68671fd256032b738e9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 19 May 2023 01:02:28 +0200 Subject: [PATCH] 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 --- lib/vquic/vquic.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.47.3