Skip to content

Commit

Permalink
test-aa: Make variables local to this file static.
Browse files Browse the repository at this point in the history
Found by sparse.

Signed-off-by: Ben Pfaff <blp@nicira.com>
  • Loading branch information
blp committed Mar 4, 2015
1 parent e8fa10d commit 24885e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-aa.c
Expand Up @@ -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;


/*
Expand Down

0 comments on commit 24885e3

Please sign in to comment.