udp: Use size_t for return value of recvfrom()

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-03-17 10:57:42 +01:00
parent cd14bff5ea
commit 93977868f9

2
udp.c
View file

@ -64,7 +64,7 @@ void udp_sock_handler(struct ctx *c, int s, uint32_t events)
socklen_t slen = sizeof(sr); socklen_t slen = sizeof(sr);
char buf[USHRT_MAX]; char buf[USHRT_MAX];
struct udphdr *uh; struct udphdr *uh;
int n; ssize_t n;
(void)events; (void)events;