Commits
David Lamparter authored 9bb5870e26a Merge
1812 1812 | |
1813 1813 | if (!aspath->str) |
1814 1814 | aspath_str_update (aspath); |
1815 1815 | |
1816 1816 | key = jhash (aspath->str, strlen(aspath->str), 2334325); |
1817 1817 | |
1818 1818 | return key; |
1819 1819 | } |
1820 1820 | |
1821 1821 | /* If two aspath have same value then return 1 else return 0 */ |
1822 - | static int |
1822 + | int |
1823 1823 | aspath_cmp (const void *arg1, const void *arg2) |
1824 1824 | { |
1825 1825 | const struct assegment *seg1 = ((const struct aspath *)arg1)->segments; |
1826 1826 | const struct assegment *seg2 = ((const struct aspath *)arg2)->segments; |
1827 1827 | |
1828 1828 | while (seg1 || seg2) |
1829 1829 | { |
1830 1830 | int i; |
1831 1831 | if ((!seg1 && seg2) || (seg1 && !seg2)) |
1832 1832 | return 0; |