diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-06 09:35:31 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-06 09:35:31 -0600 |
commit | 34c0b633c6530b8e7fce5479a5d0d41cd10b10cb (patch) | |
tree | 7ca3bf869409dd7665b31d5f7ff18fe42863c77b /nuttx/net/iob/iob_trimtail.c | |
parent | c7395ffbde4fb05be4f9f7dae07d2e3bb67c3438 (diff) | |
download | nuttx-34c0b633c6530b8e7fce5479a5d0d41cd10b10cb.tar.gz nuttx-34c0b633c6530b8e7fce5479a5d0d41cd10b10cb.tar.bz2 nuttx-34c0b633c6530b8e7fce5479a5d0d41cd10b10cb.zip |
IOB: Add queue handling interfaces; improve lists
Diffstat (limited to 'nuttx/net/iob/iob_trimtail.c')
-rw-r--r-- | nuttx/net/iob/iob_trimtail.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nuttx/net/iob/iob_trimtail.c b/nuttx/net/iob/iob_trimtail.c index 0a7dd2911..872560a49 100644 --- a/nuttx/net/iob/iob_trimtail.c +++ b/nuttx/net/iob/iob_trimtail.c @@ -40,7 +40,6 @@ #include <nuttx/config.h> #include <string.h> -#include <queue.h> #include <nuttx/net/iob.h> @@ -98,9 +97,7 @@ FAR struct iob_s *iob_trimtail(FAR struct iob_s *iob, unsigned int trimlen) last = NULL; iosize = 0; - for (entry = iob; - entry; - entry = (FAR struct iob_s *)entry->io_link.flink) + for (entry = iob; entry; entry = entry->io_flink) { /* Accumulate the total size of all buffers in the list */ @@ -139,7 +136,7 @@ FAR struct iob_s *iob_trimtail(FAR struct iob_s *iob, unsigned int trimlen) /* Unlink the penultimate from the freed buffer */ - penultimate->io_link.flink = NULL; + penultimate->io_flink = NULL; } else |