diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-05-07 14:27:32 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-05-07 14:27:32 (GMT) |
commit | a43ce2c320786f6065886469aa964b99f49d9c9c (patch) | |
tree | 11db0ee1375fa3b6ab04712ba72eedbc2952d794 /Source/CTest/Curl/connect.c | |
parent | c5a0dfa1d1b4b2c090fda2670ac3b35215e87b95 (diff) | |
download | CMake-a43ce2c320786f6065886469aa964b99f49d9c9c.zip CMake-a43ce2c320786f6065886469aa964b99f49d9c9c.tar.gz CMake-a43ce2c320786f6065886469aa964b99f49d9c9c.tar.bz2 |
ERR: Fix some HP specific warnings
Diffstat (limited to 'Source/CTest/Curl/connect.c')
-rw-r--r-- | Source/CTest/Curl/connect.c | 12 |
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)) |