summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CTest/Curl/connect.c')
-rw-r--r--Source/CTest/Curl/connect.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c
index 0f95bd5..2165271 100644
--- a/Source/CTest/Curl/connect.c
+++ b/Source/CTest/Curl/connect.c
@@ -269,9 +269,13 @@ static CURLcode bindlocal(struct connectdata *conn,
/* we succeeded to bind */
struct sockaddr_in add;
- 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;
}
@@ -337,7 +341,11 @@ static
int socketerror(int sockfd)
{
int err = 0;
+#ifdef __hpux
+ int errSize = sizeof(err);
+#else
socklen_t errSize = sizeof(err);
+#endif
if( -1 == getsockopt(sockfd, SOL_SOCKET, SO_ERROR,
(void *)&err, &errSize))