mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Fixed some compiler warnings on lcc.
This commit is contained in:
parent
d14588120f
commit
e2df946eee
@ -216,7 +216,7 @@ int waitconnect(curl_socket_t sockfd, /* socket */
|
|||||||
/* Call this function once now, and ignore the results. We do this to
|
/* 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
|
"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. */
|
reliably. This is reported necessary on the MPE/iX operating system. */
|
||||||
verifyconnect(sockfd, NULL);
|
(void)verifyconnect(sockfd, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* now select() until we get connect or timeout */
|
/* now select() until we get connect or timeout */
|
||||||
@ -563,7 +563,7 @@ CURLcode Curl_is_connected(struct connectdata *conn,
|
|||||||
|
|
||||||
/* nope, not connected */
|
/* nope, not connected */
|
||||||
if (WAITCONN_FDSET_ERROR == rc) {
|
if (WAITCONN_FDSET_ERROR == rc) {
|
||||||
verifyconnect(sockfd, &error);
|
(void)verifyconnect(sockfd, &error);
|
||||||
data->state.os_errno = error;
|
data->state.os_errno = error;
|
||||||
infof(data, "%s\n",Curl_strerror(conn,error));
|
infof(data, "%s\n",Curl_strerror(conn,error));
|
||||||
}
|
}
|
||||||
@ -632,7 +632,7 @@ singleipconnect(struct connectdata *conn,
|
|||||||
char addr_buf[128];
|
char addr_buf[128];
|
||||||
int rc;
|
int rc;
|
||||||
int error;
|
int error;
|
||||||
bool conected;
|
bool isconnected;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
curl_socket_t sockfd;
|
curl_socket_t sockfd;
|
||||||
|
|
||||||
@ -702,9 +702,9 @@ singleipconnect(struct connectdata *conn,
|
|||||||
return sockfd;
|
return sockfd;
|
||||||
}
|
}
|
||||||
|
|
||||||
conected = verifyconnect(sockfd, &error);
|
isconnected = verifyconnect(sockfd, &error);
|
||||||
|
|
||||||
if(!rc && conected) {
|
if(!rc && isconnected) {
|
||||||
/* we are connected, awesome! */
|
/* we are connected, awesome! */
|
||||||
*connected = TRUE; /* this is a true connect */
|
*connected = TRUE; /* this is a true connect */
|
||||||
infof(data, "connected\n");
|
infof(data, "connected\n");
|
||||||
|
@ -808,6 +808,7 @@ static int hostmatch(const char *hostname, const char *pattern)
|
|||||||
if (toupper(c) != toupper(*hostname++))
|
if (toupper(c) != toupper(*hostname++))
|
||||||
return HOST_NOMATCH;
|
return HOST_NOMATCH;
|
||||||
}
|
}
|
||||||
|
/* we never reach this point */
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -203,7 +203,7 @@ char *getpass_r(const char *prompt, /* prompt to display */
|
|||||||
if(disabled) {
|
if(disabled) {
|
||||||
/* if echo actually was disabled, add a newline */
|
/* if echo actually was disabled, add a newline */
|
||||||
fputs("\n", stderr);
|
fputs("\n", stderr);
|
||||||
ttyecho(TRUE, fd); /* enable echo */
|
(void)ttyecho(TRUE, fd); /* enable echo */
|
||||||
}
|
}
|
||||||
|
|
||||||
if(1 != fd)
|
if(1 != fd)
|
||||||
|
@ -368,6 +368,7 @@ static int synchnet(curl_socket_t f /* socket to flush */)
|
|||||||
else
|
else
|
||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
|
/* we never reach this point */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user