diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-07 12:14:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-10-07 12:14:00 (GMT) |
commit | ce54dc97ed60b8f50e3193b20ecf62e9659a991f (patch) | |
tree | 5d9ee51de63a4b22bbc9379785bc18bce1dc07bd /Source/CTest/Curl | |
parent | caa8ca7c9eeb847b6f85a77e1cb5a69dec6e558b (diff) | |
download | CMake-ce54dc97ed60b8f50e3193b20ecf62e9659a991f.zip CMake-ce54dc97ed60b8f50e3193b20ecf62e9659a991f.tar.gz CMake-ce54dc97ed60b8f50e3193b20ecf62e9659a991f.tar.bz2 |
COMP: Remove assignment warnings on hp
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r-- | Source/CTest/Curl/connect.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c index 51667ca..088ea47 100644 --- a/Source/CTest/Curl/connect.c +++ b/Source/CTest/Curl/connect.c @@ -364,9 +364,13 @@ static CURLcode bindlocal(struct connectdata *conn, bindworked = TRUE; - size = sizeof(add); +#ifdef __hpux + int gsize = sizeof(add); +#else + socklen_t gsize = sizeof(add); +#endif if(getsockname(sockfd, (struct sockaddr *) &add, - (socklen_t *)&size)<0) { + &gsize)<0) { failf(data, "getsockname() failed"); return CURLE_HTTP_PORT_FAILED; } @@ -405,7 +409,12 @@ static bool verifyconnect(curl_socket_t sockfd, int *error) bool rc = TRUE; #ifdef SO_ERROR int err = 0; +#ifdef __hpux + int errSize = sizeof(err); +#else socklen_t errSize = sizeof(err); +#endif + #ifdef WIN32 /* |