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:
parent
342f81b7e1
commit
162843f90a
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue