From 0b067c4b8a4cf13c82c21e4c3e0e9a9950d97c05 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 23 Oct 2010 07:50:24 -0600 Subject: [PATCH] Fix idle struct addrinfo definition. ai_addrlen is defined formally as socklen_t not size_t. This could have caused problems if the idle version were ever used. Found during investigation of bug 3057 by "Anonymous". --- include/getaddrinfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/getaddrinfo.h b/include/getaddrinfo.h index a0aabf7347..ec34ca19e9 100644 --- a/include/getaddrinfo.h +++ b/include/getaddrinfo.h @@ -62,7 +62,7 @@ struct addrinfo { int ai_family; /* PF_xxx */ int ai_socktype; /* SOCK_xxx */ int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ - size_t ai_addrlen; /* length of ai_addr */ + socklen_t ai_addrlen; /* length of ai_addr */ char *ai_canonname; /* canonical name for nodename */ struct sockaddr *ai_addr; /* binary address */ struct addrinfo *ai_next; /* next structure in linked list */ -- 2.47.2