From ce54dc97ed60b8f50e3193b20ecf62e9659a991f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 7 Oct 2004 08:14:00 -0400 Subject: COMP: Remove assignment warnings on hp --- Source/CTest/Curl/connect.c | 13 +++++++++++-- 1 file 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 /* -- cgit v0.12