summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-02-21 15:12:01 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-02-21 15:12:01 +0000
commit9bc8346a1883e7d362fa3ae9afacbbf2861c8f7e (patch)
treef01def881dcae7af701c99d0220e90dd71287a95
parent020c664a212c3eadb6172c1c46487a9a841b156c (diff)
change ai_addrlen to socklen_t. now it conforms to
draft-ietf-ipngwg-rfc2553bis-03.txt. backward compatibility concern: - should be safe to change signed to unsigned, as we never return negative value. - sizeof(int) is 4 for all archs, so there's no size change with socklen_t (= u_int32_t) commented by deraadt.
-rw-r--r--include/netdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netdb.h b/include/netdb.h
index b5f7b5a12fb..ae63af5d789 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: netdb.h,v 1.11 2000/10/04 22:54:23 espie Exp $ */
+/* $OpenBSD: netdb.h,v 1.12 2001/02/21 15:12:00 itojun Exp $ */
/*
* ++Copyright++ 1980, 1983, 1988, 1993
@@ -179,7 +179,7 @@ struct addrinfo {
int ai_family; /* protocol family for socket */
int ai_socktype; /* socket type */
int ai_protocol; /* protocol for socket */
- int ai_addrlen; /* length of socket-address */
+ socklen_t ai_addrlen; /* length of socket-address */
struct sockaddr *ai_addr; /* socket-address for socket */
char *ai_canonname; /* canonical name for service location (iff req) */
struct addrinfo *ai_next; /* pointer to next in list */