aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorZhiyong Yang <zhiyong.yang@intel.com>2018-05-30 22:12:57 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-31 09:16:42 +0000
commit462072a1fce62142d60aedb5db38634a44db69af (patch)
tree90e36d4dab0ee91446824b24f1cd1010ab48f20f /src/vlib
parentc4f2ef7d7e315e183e3994630209471c5362163a (diff)
fix missing void pointer explicit type cast
Change-Id: I5098e5d966abc44db045783883424b63083f08ee Signed-off-by: Zhiyong Yang <zhiyong.yang@intel.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/buffer_funcs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vlib/buffer_funcs.h b/src/vlib/buffer_funcs.h
index aa7526e079b..509d3817823 100644
--- a/src/vlib/buffer_funcs.h
+++ b/src/vlib/buffer_funcs.h
@@ -203,7 +203,7 @@ vlib_get_buffer_indices_with_offset (vlib_main_t * vm, void **b, u32 * bi,
}
while (count)
{
- bi[0] = vlib_get_buffer_index (vm, b[0] + offset);
+ bi[0] = vlib_get_buffer_index (vm, ((u8 *) b[0]) + offset);
bi += 1;
b += 1;
count -= 1;