From 24885e3232f53d81856ea3c6166ff7564b27af9d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 22 Feb 2015 13:23:17 -0800 Subject: [PATCH] test-aa: Make variables local to this file static. Found by sparse. Signed-off-by: Ben Pfaff --- tests/test-aa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test-aa.c b/tests/test-aa.c index c4c9e71ce..843249e7b 100644 --- a/tests/test-aa.c +++ b/tests/test-aa.c @@ -26,14 +26,14 @@ #define ETH_TYPE_LLDP 0x88cc /* Dummy MAC addresses */ -char chassis_mac[ETHER_ADDR_LEN] = { 0x5e, 0x10, 0x8e, 0xe7, 0x84, 0xad }; -uint8_t eth_src[ETHER_ADDR_LEN] = { 0x5e, 0x10, 0x8e, 0xe7, 0x84, 0xad }; +static char chassis_mac[ETH_ADDR_LEN] = { 0x5e, 0x10, 0x8e, 0xe7, 0x84, 0xad }; +static uint8_t eth_src[ETH_ADDR_LEN] = { 0x5e, 0x10, 0x8e, 0xe7, 0x84, 0xad }; /* LLDP multicast address */ static const uint8_t eth_addr_lldp[6] = {0x01, 0x80, 0xC2, 0x00, 0x00, 0x0e}; /* Count of tests run */ -int num_tests = 0; +static int num_tests = 0; /*