summaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-14 10:30:44 +0000
committerYang Tse <yangsita@gmail.com>2006-07-14 10:30:44 +0000
commitd2cefc140a601c3028c16b23dae2d47cd95ac3c8 (patch)
tree50190723a232e0bbb9dfac0fae5c7dd64ee0eb97 /lib/hostip.h
parentccfce894239f431604ff07ec47126f53ecccbdd3 (diff)
downloadcurl-d2cefc140a601c3028c16b23dae2d47cd95ac3c8.tar.gz
Change the ai_addrlen type of struct addrinfo from size_t to socklen_t, per RFC 3493.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index ade5efa28..2205aac08 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -94,13 +94,13 @@ typedef struct addrinfo Curl_addrinfo;
/* OK, so some ipv4-only include tree probably have the addrinfo struct, but
to work even on those that don't, we provide our own look-alike! */
struct Curl_addrinfo {
- int ai_flags;
- int ai_family;
- int ai_socktype;
- int ai_protocol;
- size_t ai_addrlen;
- struct sockaddr *ai_addr;
- char *ai_canonname;
+ int ai_flags;
+ int ai_family;
+ int ai_socktype;
+ int ai_protocol;
+ socklen_t ai_addrlen; /* Follow rfc3493 struct addrinfo */
+ char *ai_canonname;
+ struct sockaddr *ai_addr;
struct Curl_addrinfo *ai_next;
};
typedef struct Curl_addrinfo Curl_addrinfo;