]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vquic.c: make recvfrom_packets static, avoid compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Thu, 18 May 2023 23:02:28 +0000 (01:02 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 19 May 2023 14:15:22 +0000 (16:15 +0200)
warning: no previous prototype for 'recvfrom_packets'

Reported-by: Keitagit-kun on github
Fixes #11146
Closes #11148

lib/vquic/vquic.c

index a51ebfa7d972b99ba5c2c8daaccd61ea91aefd22..19ee3f4d37d96414191d727dec4975d32b423c06 100644 (file)
@@ -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);