udp: Use size_t for return value of recvfrom()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
cd14bff5ea
commit
93977868f9
1 changed files with 1 additions and 1 deletions
2
udp.c
2
udp.c
|
@ -64,7 +64,7 @@ void udp_sock_handler(struct ctx *c, int s, uint32_t events)
|
|||
socklen_t slen = sizeof(sr);
|
||||
char buf[USHRT_MAX];
|
||||
struct udphdr *uh;
|
||||
int n;
|
||||
ssize_t n;
|
||||
|
||||
(void)events;
|
||||
|
||||
|
|
Loading…
Reference in a new issue