diff --git a/trie/trie.c b/trie/trie.c index e275698..de7146e 100644 --- a/trie/trie.c +++ b/trie/trie.c @@ -1,6 +1,5 @@ #include "trie.h" -#define READ_MODE "r" #define RULE_NOT_FOUND -1 #define GET_BIT(key, bit) ( ( key.s[ bit / 16 ] & (1u << (15 - bit % 16)) ) != 0 ) @@ -84,6 +83,7 @@ int trie_search(trie_holder_t t, ipv6_t key) { #define RULES_FILE "../data/routing-data" #define TEST_FILE "../data/test-data" #define TEST_ROWS 5721 +#define READ_MODE "r" int parse_line(ipv6_t* key, int* val, int* mask, FILE* f) { /*! assumes only good input */ memset(key, 0, sizeof(ipv6_t));