mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
net: fix build break
Change-Id: I662580ded8d1c98ddcfbcfae961978eb3512e3b9 Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
@@ -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
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user