tests: remove uses of uint 62/40762/4
authorEric Sun <[email protected]>
Wed, 21 Jul 2021 22:28:47 +0000 (15:28 -0700)
committerDamjan Marion <[email protected]>
Mon, 6 May 2024 11:54:44 +0000 (11:54 +0000)
This change changes all instances of `uint` to `unsigned int` to avoid
use of the non-standard type. This fixes problems that some versions of
GCC may have.

Type: fix
Signed-off-by: Pierre Pfister <[email protected]>
Change-Id: I08cce367c2a8f31efb2fccabcb8f699d801b0f8a
Signed-off-by: Eric Sun <[email protected]>
src/plugins/unittest/policer_test.c

index 2b14bf6..41f7699 100644 (file)
@@ -21,7 +21,7 @@ policer_test (vlib_main_t *vm, unformat_input_t *input,
              vlib_cli_command_t *cmd_arg)
 {
   int policer_index, i;
-  uint rate_kbps, burst, num_pkts;
+  unsigned int rate_kbps, burst, num_pkts;
   double total_bytes, cpu_ticks_per_pkt, time = 0;
   double cpu_speed, cpu_ticks_per_byte;
   policer_result_e result, input_colour = POLICE_CONFORM;