vlib: avoid use of vector of voids 53/35753/2
authorDamjan Marion <damarion@cisco.com>
Wed, 23 Mar 2022 15:59:23 +0000 (16:59 +0100)
committerFlorin Coras <florin.coras@gmail.com>
Wed, 23 Mar 2022 18:32:05 +0000 (18:32 +0000)
Type: fix
Change-Id: I76e28854db8a1e9134c816c0c5d81b031dc4e27d
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/node.h
src/vlib/node_funcs.h

index 296d183..ee3aded 100644 (file)
@@ -571,7 +571,7 @@ typedef struct
   u32 n_suspends;
 
   /* Vectors of pending event data indexed by event type index. */
-  void **pending_event_data_by_type_index;
+  u8 **pending_event_data_by_type_index;
 
   /* Bitmap of event type-indices with non-empty vectors. */
   uword *non_empty_event_type_bitmap;
index 147d5eb..b864fec 100644 (file)
@@ -835,7 +835,7 @@ vlib_process_signal_event_helper (vlib_node_main_t * nm,
                                  uword n_data_elts, uword n_data_elt_bytes)
 {
   uword p_flags, add_to_pending, delete_from_wheel;
-  void *data_to_be_written_by_caller;
+  u8 *data_to_be_written_by_caller;
 
   ASSERT (n->type == VLIB_NODE_TYPE_PROCESS);
 
@@ -845,7 +845,7 @@ vlib_process_signal_event_helper (vlib_node_main_t * nm,
 
   /* Resize data vector and return caller's data to be written. */
   {
-    void *data_vec = p->pending_event_data_by_type_index[t];
+    u8 *data_vec = p->pending_event_data_by_type_index[t];
     uword l;
 
     if (!data_vec && vec_len (nm->recycled_event_data_vectors))