Localize the timeout variable within the W message macro.
[vpp.git] / src / plugins / flowperpkt / flowperpkt_test.c
index 70b4a34..4cc1cfb 100644 (file)
@@ -95,7 +95,6 @@ static int
 api_flowperpkt_tx_interface_add_del (vat_main_t * vam)
 {
   unformat_input_t *i = vam->input;
-  f64 timeout;
   int enable_disable = 1;
   u8 which = 0;                        /* ipv4 by default */
   u32 sw_if_index = ~0;
@@ -129,7 +128,7 @@ api_flowperpkt_tx_interface_add_del (vat_main_t * vam)
   mp->which = which;
 
   /* send it... */
-  S;
+  S (mp);
 
   /* Wait for a reply... */
   W;