aboutgitcodebugslistschat
path: root/udp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-03-17 10:57:42 +0100
committerStefano Brivio <sbrivio@redhat.com>2021-03-17 10:57:42 +0100
commit93977868f9d48c5efcc8f67c978af17bd6330554 (patch)
treed2bf25f70447d5f64b00f682b12a9b3d9ff95461 /udp.c
parentcd14bff5ea7c975a8064c8a13d4b1a7c8ebc529e (diff)
downloadpasst-93977868f9d48c5efcc8f67c978af17bd6330554.tar
passt-93977868f9d48c5efcc8f67c978af17bd6330554.tar.gz
passt-93977868f9d48c5efcc8f67c978af17bd6330554.tar.bz2
passt-93977868f9d48c5efcc8f67c978af17bd6330554.tar.lz
passt-93977868f9d48c5efcc8f67c978af17bd6330554.tar.xz
passt-93977868f9d48c5efcc8f67c978af17bd6330554.tar.zst
passt-93977868f9d48c5efcc8f67c978af17bd6330554.zip
udp: Use size_t for return value of recvfrom()
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udp.c b/udp.c
index 4acd48e..b8eddf2 100644
--- a/udp.c
+++ b/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;