net: tcp: Store return value of net_buf_frags_len() on a size_t

The net_buf_frags_len() function returns a size_t, which is an unsigned
integer.  Store on an appropriate size_t variable instead.

Change-Id: I98aa4c0ddd7c464737436aa9ce13bdc86c11da2b
Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
Leandro Pereira 2016-12-20 16:22:34 -08:00 committed by Tomasz Bursztyka
commit 162843f90a

View file

@ -594,10 +594,9 @@ const char * const net_tcp_state_str(enum net_tcp_state state)
int net_tcp_queue_data(struct net_context *context, struct net_buf *buf)
{
int ret, data_len;
struct net_conn *conn = (struct net_conn *)context->conn_handler;
data_len = net_buf_frags_len(buf);
size_t data_len = net_buf_frags_len(buf);
int ret;
/* Set PSH on all packets, our window is so small that there's
* no point in the remote side trying to finesse things and