Skip to content

Commit f9f71ed

Browse files
committed
Fix conversion warnings in inet/remote
1 parent d6e609a commit f9f71ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/remote/inet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ rem_port* INET_connect(const TEXT* name,
10401040
gds__log("setsockopt: error setting TCP_NODELAY");
10411041
else
10421042
{
1043-
n = connect(port->port_handle, pai->ai_addr, pai->ai_addrlen);
1043+
n = connect(port->port_handle, pai->ai_addr, static_cast<socklen_t>(pai->ai_addrlen));
10441044
if (n != -1)
10451045
{
10461046
port->port_peer_name = host;
@@ -1148,7 +1148,7 @@ static rem_port* listener_socket(rem_port* port, USHORT flag, const addrinfo* pa
11481148
{
11491149
if (++retry)
11501150
sleep(10);
1151-
n = bind(port->port_handle, pai->ai_addr, pai->ai_addrlen);
1151+
n = bind(port->port_handle, pai->ai_addr, static_cast<socklen_t>(pai->ai_addrlen));
11521152
} while (n == -1 && INET_ERRNO == INET_ADDR_IN_USE && retry < INET_RETRY_CALL);
11531153

11541154
if (n == -1)

src/remote/remote.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ void rem_port::addServerKeys(const CSTRING* passedStr)
13401340
break;
13411341
case TAG_PLUGIN_SPECIFIC:
13421342
plugin.assign(newKeys.getBytes(), newKeys.getClumpLength());
1343-
len = strlen(plugin.c_str()) + 1;
1343+
len = fb_strlen(plugin.c_str()) + 1;
13441344
if (len < plugin.length())
13451345
{
13461346
const char* data = &plugin[len];

0 commit comments

Comments
 (0)