COMP: Remove assignment warnings on hp

This commit is contained in:
Bill Hoffman 2004-10-07 08:14:00 -04:00
parent caa8ca7c9e
commit ce54dc97ed
1 changed files with 11 additions and 2 deletions

View File

@ -364,9 +364,13 @@ static CURLcode bindlocal(struct connectdata *conn,
bindworked = TRUE; bindworked = TRUE;
size = sizeof(add); #ifdef __hpux
int gsize = sizeof(add);
#else
socklen_t gsize = sizeof(add);
#endif
if(getsockname(sockfd, (struct sockaddr *) &add, if(getsockname(sockfd, (struct sockaddr *) &add,
(socklen_t *)&size)<0) { &gsize)<0) {
failf(data, "getsockname() failed"); failf(data, "getsockname() failed");
return CURLE_HTTP_PORT_FAILED; return CURLE_HTTP_PORT_FAILED;
} }
@ -405,7 +409,12 @@ static bool verifyconnect(curl_socket_t sockfd, int *error)
bool rc = TRUE; bool rc = TRUE;
#ifdef SO_ERROR #ifdef SO_ERROR
int err = 0; int err = 0;
#ifdef __hpux
int errSize = sizeof(err);
#else
socklen_t errSize = sizeof(err); socklen_t errSize = sizeof(err);
#endif
#ifdef WIN32 #ifdef WIN32
/* /*