diff options
author | endoffile78 <endoffile78@yahoo.com> | 2017-01-05 15:16:56 -0600 |
---|---|---|
committer | endoffile78 <endoffile78@yahoo.com> | 2017-01-05 15:16:56 -0600 |
commit | 59e2a844f04a8725e8079f854158aa86ef5988b2 (patch) | |
tree | 40130a9f28a5d08b6ff524156f5476b7359f75df /toxcore/TCP_server.c | |
parent | 0a61d1108547513211560e66809479cab5082ede (diff) |
Revert "Portability fixes"
This reverts commit f3469070fe899e8e4fd88665386a55bad9f77cd8.
Diffstat (limited to 'toxcore/TCP_server.c')
-rw-r--r-- | toxcore/TCP_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/TCP_server.c b/toxcore/TCP_server.c index d9ace28a..0e2d0085 100644 --- a/toxcore/TCP_server.c +++ b/toxcore/TCP_server.c | |||
@@ -619,7 +619,7 @@ static int send_routing_response(TCP_Secure_Connection *con, uint8_t rpid, const | |||
619 | */ | 619 | */ |
620 | static int send_connect_notification(TCP_Secure_Connection *con, uint8_t id) | 620 | static int send_connect_notification(TCP_Secure_Connection *con, uint8_t id) |
621 | { | 621 | { |
622 | uint8_t data[2] = {TCP_PACKET_CONNECTION_NOTIFICATION, (uint8_t)(id + NUM_RESERVED_PORTS)}; | 622 | uint8_t data[2] = {TCP_PACKET_CONNECTION_NOTIFICATION, id + NUM_RESERVED_PORTS}; |
623 | return write_packet_TCP_secure_connection(con, data, sizeof(data), 1); | 623 | return write_packet_TCP_secure_connection(con, data, sizeof(data), 1); |
624 | } | 624 | } |
625 | 625 | ||
@@ -629,7 +629,7 @@ static int send_connect_notification(TCP_Secure_Connection *con, uint8_t id) | |||
629 | */ | 629 | */ |
630 | static int send_disconnect_notification(TCP_Secure_Connection *con, uint8_t id) | 630 | static int send_disconnect_notification(TCP_Secure_Connection *con, uint8_t id) |
631 | { | 631 | { |
632 | uint8_t data[2] = {TCP_PACKET_DISCONNECT_NOTIFICATION, (uint8_t)(id + NUM_RESERVED_PORTS)}; | 632 | uint8_t data[2] = {TCP_PACKET_DISCONNECT_NOTIFICATION, id + NUM_RESERVED_PORTS}; |
633 | return write_packet_TCP_secure_connection(con, data, sizeof(data), 1); | 633 | return write_packet_TCP_secure_connection(con, data, sizeof(data), 1); |
634 | } | 634 | } |
635 | 635 | ||