diff options
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1349,7 +1349,7 @@ static CURLcode ConnectPlease(struct connectdata *conn, memcpy((char *)&(conn->serv_addr.sin_addr), (struct in_addr *)addr, sizeof(struct in_addr)); conn->serv_addr.sin_family = hostaddr->h_addrtype; - conn->serv_addr.sin_port = htons(conn->port); + conn->serv_addr.sin_port = htons((unsigned short)conn->port); #endif } @@ -2078,7 +2078,7 @@ static CURLcode CreateConnection(struct SessionHandle *data, } *tmp = '\0'; /* cut off the name there */ - conn->remote_port = port; + conn->remote_port = (unsigned short)port; } } |