projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ebb0e
)
Avoid warning "comparison of unsigned expression < 0 is always false"
author
Gisle Vanem
<gvanem@broadpark.no>
Thu, 20 Jul 2006 16:37:05 +0000
(16:37 +0000)
committer
Gisle Vanem
<gvanem@broadpark.no>
Thu, 20 Jul 2006 16:37:05 +0000
(16:37 +0000)
lib/hostip6.c
patch
|
blob
|
history
diff --git
a/lib/hostip6.c
b/lib/hostip6.c
index
eb7c654
..
55be255
100644
(file)
--- a/
lib/hostip6.c
+++ b/
lib/hostip6.c
@@
-238,7
+238,7
@@
Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
/* see if we have an IPv6 stack */
s = socket(PF_INET6, SOCK_DGRAM, 0);
- if (s
< 0
) {
+ if (s
!= CURL_SOCKET_BAD
) {
/* Some non-IPv6 stacks have been found to make very slow name resolves
* when PF_UNSPEC is used, so thus we switch to a mere PF_INET lookup if
* the stack seems to be a non-ipv6 one. */