aboutgitcodebugslistschat
path: root/udp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-07-17 10:36:01 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-07-17 07:05:13 +0200
commit272d1d033c640700b21c49335b5b9c9474f52682 (patch)
tree252f0d96048acb4c1a9f908a3fd052fec6cffc41 /udp.c
parentf79c42317fb80ee181b13273c80f93b7af6f04f3 (diff)
downloadpasst-272d1d033c640700b21c49335b5b9c9474f52682.tar
passt-272d1d033c640700b21c49335b5b9c9474f52682.tar.gz
passt-272d1d033c640700b21c49335b5b9c9474f52682.tar.bz2
passt-272d1d033c640700b21c49335b5b9c9474f52682.tar.lz
passt-272d1d033c640700b21c49335b5b9c9474f52682.tar.xz
passt-272d1d033c640700b21c49335b5b9c9474f52682.tar.zst
passt-272d1d033c640700b21c49335b5b9c9474f52682.zip
udp: Make udp_sock_recv static
Through an oversight this was previously declared as a public function although it's only used in udp.c and there is no prototype in any header. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udp.c b/udp.c
index dee402f..187483f 100644
--- a/udp.c
+++ b/udp.c
@@ -737,8 +737,8 @@ static void udp_tap_prepare(const struct ctx *c, const struct mmsghdr *mmh,
*
* #syscalls recvmmsg
*/
-int udp_sock_recv(const struct ctx *c, int s, uint32_t events,
- struct mmsghdr *mmh)
+static int udp_sock_recv(const struct ctx *c, int s, uint32_t events,
+ struct mmsghdr *mmh)
{
/* For not entirely clear reasons (data locality?) pasta gets better
* throughput if we receive tap datagrams one at a atime. For small