Make subnet caches static.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 12 Jul 2015 11:08:34 +0000 (13:08 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 12 Jul 2015 11:08:34 +0000 (13:08 +0200)
src/subnet.c

index 534e5b53d562a9f8ae3f820c406622b65143f13b..090a62bfe74236e4d7289e366d0a063f25f3630e 100644 (file)
@@ -40,9 +40,9 @@ splay_tree_t *subnet_tree;
 
 /* Subnet lookup cache */
 
-hash_t *ipv4_cache;
-hash_t *ipv6_cache;
-hash_t *mac_cache;
+static hash_t *ipv4_cache;
+static hash_t *ipv6_cache;
+static hash_t *mac_cache;
 
 void subnet_cache_flush(void) {
        hash_clear(ipv4_cache);