diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c index 40a4586d17..016b44ce84 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp.c @@ -44,7 +44,6 @@ #define TCP_MSG_QUEUE_SIZE (1 << CONFIG_GNRC_TCP_MSG_QUEUE_SIZE_EXP) - /** * @brief Central MBOX evtimer used by gnrc_tcp */ diff --git a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c index 04a03f990f..5d761bd1bc 100644 --- a/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c +++ b/sys/net/gnrc/transport_layer/tcp/gnrc_tcp_fsm.c @@ -41,7 +41,7 @@ /** * @brief Helper macro for LL_SEARCH to compare TCBs */ -#define TCB_EQUAL(a,b) ((a) != (b)) +#define TCB_EQUAL(a, b) ((a) != (b)) /** * @brief Checks if a given port number is currently used by a TCB as local_port. @@ -77,7 +77,7 @@ static uint16_t _get_random_local_port(void) if (ret < 1024) { continue; } - } while(_is_local_port_in_use(ret)); + } while (_is_local_port_in_use(ret)); TCP_DEBUG_LEAVE; return ret; } @@ -322,7 +322,7 @@ static int _fsm_call_recv(gnrc_tcp_tcb_t *tcb, void *buf, size_t len) /* Read data into 'buf' up to 'len' bytes from receive buffer */ size_t rcvd = ringbuffer_get(&(tcb->rcv_buf), buf, len); - /* If receive buffer can store more than CONFIG_GNRC_TCP_MSS: open window to available buffer size */ + /* If receive buffer can store more than CONFIG_GNRC_TCP_MSS: set window to free buffer size */ if (ringbuffer_get_free(&tcb->rcv_buf) >= CONFIG_GNRC_TCP_MSS) { tcb->rcv_wnd = ringbuffer_get_free(&(tcb->rcv_buf));