aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-20 16:37:05 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-20 16:37:05 +0000
commitd46de5ab8bcc3b95d84b98a8248312a573c45005 (patch)
tree1b0d46ea9466471586011aa02a65b9925b7c9da9 /lib
parent73ebb0edde56e96d60cd9475b3bce32ec8ab2943 (diff)
Avoid warning "comparison of unsigned expression < 0 is always false"
Diffstat (limited to 'lib')
-rw-r--r--lib/hostip6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c
index eb7c654a1..55be255e7 100644
--- 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. */