summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-12-14 19:30:04 -0800
committerDamjan Marion <dmarion@me.com>2021-12-16 12:16:26 +0000
commit1413a38a68ddfec0266756f20ab184dbdb8ee6bf (patch)
tree8bf1ea92c3b9f65190c438656f95a694721683c8 /src
parent0b1a375846ef25582f1252d1f30925f08e422fef (diff)
vppinfra: fix clib_fifo_elt_at_index
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I4924420b827bdf7d161a1f723c2bfd5370d43772
Diffstat (limited to 'src')
-rw-r--r--src/vppinfra/fifo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/fifo.h b/src/vppinfra/fifo.h
index 5dc1b4512cf..c1636c49841 100644
--- a/src/vppinfra/fifo.h
+++ b/src/vppinfra/fifo.h
@@ -274,7 +274,7 @@ clib_fifo_elt_index (void *v, uword i)
return result;
}
-#define clib_fifo_elt_at_index(v,i) ((v) + clib_fifo_elt_index (v, (i)))
+#define clib_fifo_elt_at_index(v, i) ((v) + (i))
#define clib_fifo_foreach(v,f,body) \
do { \