summaryrefslogtreecommitdiff
path: root/nuttx/net/iob/iob_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/net/iob/iob_test.c')
-rw-r--r--nuttx/net/iob/iob_test.c39
1 files changed, 1 insertions, 38 deletions
diff --git a/nuttx/net/iob/iob_test.c b/nuttx/net/iob/iob_test.c
index 70e5f526f..93ed9b245 100644
--- a/nuttx/net/iob/iob_test.c
+++ b/nuttx/net/iob/iob_test.c
@@ -90,7 +90,7 @@ static void dump_chain(struct iob_s *iob)
n, iob->io_len, iob->io_offset, iob->io_priv);
pktlen += iob->io_len;
- iob = (struct iob_s *)iob->io_link.flink;
+ iob = iob->io_flink;
n++;
}
@@ -207,40 +207,3 @@ void my_assert(bool value)
abort();
}
}
-
-/****************************************************************************
- * Non-standard queue functions cloned from libc/queue
- ****************************************************************************/
-
-sq_entry_t *sq_remfirst(sq_queue_t *queue)
-{
- sq_entry_t *ret = queue->head;
-
- if (ret)
- {
- queue->head = ret->flink;
- if (!queue->head)
- {
- queue->tail = NULL;
- }
-
- ret->flink = NULL;
- }
-
- return ret;
-}
-
-void sq_addlast(sq_entry_t *node, sq_queue_t *queue)
-{
- node->flink = NULL;
- if (!queue->head)
- {
- queue->head = node;
- queue->tail = node;
- }
- else
- {
- queue->tail->flink = node;
- queue->tail = node;
- }
-}