chiark / gitweb /
portability: use socklen_t for argument to recvfrom
[secnet.git] / udp.c
diff --git a/udp.c b/udp.c
index 4883d537111e83547e35f2ef16e04e4da3bf7aea..4c393cd603cf397499c206632e2061c9b1947ef9 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;