diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-07 12:26:35 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-07 12:26:35 (GMT) |
commit | c03fa90b5b30b27f2b627cc6161d3dc3287783a2 (patch) | |
tree | 37ae1ca8d2e13456638138cb4a168c92fad9965d /Source/CTest | |
parent | c47af14ee16876327d48e34929961e4a49dd6f60 (diff) | |
download | CMake-c03fa90b5b30b27f2b627cc6161d3dc3287783a2.zip CMake-c03fa90b5b30b27f2b627cc6161d3dc3287783a2.tar.gz CMake-c03fa90b5b30b27f2b627cc6161d3dc3287783a2.tar.bz2 |
COMP: Fix C syntax, and remove unused variable
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/Curl/connect.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/CTest/Curl/connect.c b/Source/CTest/Curl/connect.c index 088ea47..361152a 100644 --- a/Source/CTest/Curl/connect.c +++ b/Source/CTest/Curl/connect.c @@ -271,7 +271,6 @@ static CURLcode bindlocal(struct connectdata *conn, *************************************************************/ if (strlen(data->set.device)<255) { struct Curl_dns_entry *h=NULL; - size_t size; char myhost[256] = ""; in_addr_t in; int rc; @@ -362,13 +361,13 @@ static CURLcode bindlocal(struct connectdata *conn, struct sockaddr_in add; #endif - bindworked = TRUE; - #ifdef __hpux int gsize = sizeof(add); #else socklen_t gsize = sizeof(add); #endif + bindworked = TRUE; + if(getsockname(sockfd, (struct sockaddr *) &add, &gsize)<0) { failf(data, "getsockname() failed"); |