chiark / gitweb /
portability: use socklen_t for argument to recvfrom
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 19 Jun 2011 12:50:51 +0000 (13:50 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 26 Jun 2011 11:07:27 +0000 (12:07 +0100)
Signed-off-by: Richard Kettlewell <richard@greenend.org.uk>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
udp.c

diff --git a/udp.c b/udp.c
index 4883d53..4c393cd 100644 (file)
--- a/udp.c
+++ b/udp.c
@@ -64,7 +64,7 @@ static void udp_afterpoll(void *state, struct pollfd *fds, int nfds)
 {
     struct udp *st=state;
     struct sockaddr_in from;
-    int fromlen;
+    socklen_t fromlen;
     struct notify_list *n;
     bool_t done;
     int rv;