net: fix build break

Change-Id: I662580ded8d1c98ddcfbcfae961978eb3512e3b9
Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an
2021-06-09 20:47:29 +08:00
parent af44043ec0
commit 2152a35662
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -466,7 +466,7 @@ int iob_get_queue_count(FAR struct iob_queue_s *queue);
****************************************************************************/
#if CONFIG_IOB_NCHAINS > 0
size_t iob_get_queue_size(FAR struct iob_queue_s *queue);
unsigned int iob_get_queue_size(FAR struct iob_queue_s *queue);
#endif /* CONFIG_IOB_NCHAINS > 0 */
/****************************************************************************
+2 -2
View File
@@ -40,11 +40,11 @@
*
****************************************************************************/
size_t iob_get_queue_size(FAR struct iob_queue_s *queue)
unsigned int iob_get_queue_size(FAR struct iob_queue_s *queue)
{
FAR struct iob_qentry_s *iobq;
unsigned int total = 0;
FAR struct iob_s *iob;
size_t total = 0;
for (iobq = queue->qh_head; iobq != NULL; iobq = iobq->qe_flink)
{
+2 -1
View File
@@ -27,6 +27,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <debug.h>
#include <errno.h>
#include <net/if.h>
@@ -65,7 +66,7 @@ int tcp_ioctl(FAR struct tcp_conn_s *conn,
iob_get_queue_size(&conn->readahead);
break;
default:
ret = -EINVAL;
ret = -ENOTTY;
break;
}
+2 -1
View File
@@ -27,6 +27,7 @@
#include <stdint.h>
#include <stdbool.h>
#include <debug.h>
#include <errno.h>
#include <net/if.h>
@@ -65,7 +66,7 @@ int udp_ioctl(FAR struct udp_conn_s *conn,
iob_get_queue_size(&conn->readahead);
break;
default:
ret = -EINVAL;
ret = -ENOTTY;
break;
}