COMP: Fix C syntax, and remove unused variable
This commit is contained in:
parent
c47af14ee1
commit
c03fa90b5b
|
@ -271,7 +271,6 @@ static CURLcode bindlocal(struct connectdata *conn,
|
||||||
*************************************************************/
|
*************************************************************/
|
||||||
if (strlen(data->set.device)<255) {
|
if (strlen(data->set.device)<255) {
|
||||||
struct Curl_dns_entry *h=NULL;
|
struct Curl_dns_entry *h=NULL;
|
||||||
size_t size;
|
|
||||||
char myhost[256] = "";
|
char myhost[256] = "";
|
||||||
in_addr_t in;
|
in_addr_t in;
|
||||||
int rc;
|
int rc;
|
||||||
|
@ -362,13 +361,13 @@ static CURLcode bindlocal(struct connectdata *conn,
|
||||||
struct sockaddr_in add;
|
struct sockaddr_in add;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bindworked = TRUE;
|
|
||||||
|
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
int gsize = sizeof(add);
|
int gsize = sizeof(add);
|
||||||
#else
|
#else
|
||||||
socklen_t gsize = sizeof(add);
|
socklen_t gsize = sizeof(add);
|
||||||
#endif
|
#endif
|
||||||
|
bindworked = TRUE;
|
||||||
|
|
||||||
if(getsockname(sockfd, (struct sockaddr *) &add,
|
if(getsockname(sockfd, (struct sockaddr *) &add,
|
||||||
&gsize)<0) {
|
&gsize)<0) {
|
||||||
failf(data, "getsockname() failed");
|
failf(data, "getsockname() failed");
|
||||||
|
|
Loading…
Reference in New Issue