From 59e2a844f04a8725e8079f854158aa86ef5988b2 Mon Sep 17 00:00:00 2001 From: endoffile78 Date: Thu, 5 Jan 2017 15:16:56 -0600 Subject: Revert "Portability fixes" This reverts commit f3469070fe899e8e4fd88665386a55bad9f77cd8. --- toxcore/TCP_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/TCP_server.c') 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 */ static int send_connect_notification(TCP_Secure_Connection *con, uint8_t id) { - uint8_t data[2] = {TCP_PACKET_CONNECTION_NOTIFICATION, (uint8_t)(id + NUM_RESERVED_PORTS)}; + uint8_t data[2] = {TCP_PACKET_CONNECTION_NOTIFICATION, id + NUM_RESERVED_PORTS}; return write_packet_TCP_secure_connection(con, data, sizeof(data), 1); } @@ -629,7 +629,7 @@ static int send_connect_notification(TCP_Secure_Connection *con, uint8_t id) */ static int send_disconnect_notification(TCP_Secure_Connection *con, uint8_t id) { - uint8_t data[2] = {TCP_PACKET_DISCONNECT_NOTIFICATION, (uint8_t)(id + NUM_RESERVED_PORTS)}; + uint8_t data[2] = {TCP_PACKET_DISCONNECT_NOTIFICATION, id + NUM_RESERVED_PORTS}; return write_packet_TCP_secure_connection(con, data, sizeof(data), 1); } -- cgit v1.2.3