]> git.proxmox.com Git - mirror_ovs.git/commitdiff
test-aa: Make variables local to this file static.
authorBen Pfaff <blp@nicira.com>
Sun, 22 Feb 2015 21:23:17 +0000 (13:23 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Mar 2015 00:19:28 +0000 (16:19 -0800)
Found by sparse.

Signed-off-by: Ben Pfaff <blp@nicira.com>
tests/test-aa.c

index c4c9e71cec140ab45a1dc3dbb04db1f539974756..843249e7b69043e0106b19f18649d7519629e80f 100644 (file)
 #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;
 
 
 /*