diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2005-12-13 18:54:31 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2005-12-13 18:54:31 +0000 |
commit | e2df946eee5cc05ff11d841fae8afdc9ad5d4852 (patch) | |
tree | b688f4807e353676d701cb86a7e316e2e0c8377b /lib | |
parent | d14588120f4f7634f56ada128f8f298bef21152f (diff) |
Fixed some compiler warnings on lcc.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connect.c | 10 | ||||
-rw-r--r-- | lib/ssluse.c | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/connect.c b/lib/connect.c index 18c40f9ac..42c0ea6e7 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -216,7 +216,7 @@ int waitconnect(curl_socket_t sockfd, /* socket */ /* Call this function once now, and ignore the results. We do this to "clear" the error state on the socket so that we can later read it reliably. This is reported necessary on the MPE/iX operating system. */ - verifyconnect(sockfd, NULL); + (void)verifyconnect(sockfd, NULL); #endif /* now select() until we get connect or timeout */ @@ -563,7 +563,7 @@ CURLcode Curl_is_connected(struct connectdata *conn, /* nope, not connected */ if (WAITCONN_FDSET_ERROR == rc) { - verifyconnect(sockfd, &error); + (void)verifyconnect(sockfd, &error); data->state.os_errno = error; infof(data, "%s\n",Curl_strerror(conn,error)); } @@ -632,7 +632,7 @@ singleipconnect(struct connectdata *conn, char addr_buf[128]; int rc; int error; - bool conected; + bool isconnected; struct SessionHandle *data = conn->data; curl_socket_t sockfd; @@ -702,9 +702,9 @@ singleipconnect(struct connectdata *conn, return sockfd; } - conected = verifyconnect(sockfd, &error); + isconnected = verifyconnect(sockfd, &error); - if(!rc && conected) { + if(!rc && isconnected) { /* we are connected, awesome! */ *connected = TRUE; /* this is a true connect */ infof(data, "connected\n"); diff --git a/lib/ssluse.c b/lib/ssluse.c index 162f400d6..674477ba1 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -808,6 +808,7 @@ static int hostmatch(const char *hostname, const char *pattern) if (toupper(c) != toupper(*hostname++)) return HOST_NOMATCH; } + /* we never reach this point */ } static int |