| 178 | } |
| 179 | |
| 180 | static unsigned int |
| 181 | hash_link_ref(const uint8_t *link_ref, size_t length) |
| 182 | { |
| 183 | size_t i; |
| 184 | unsigned int hash = 0; |
| 185 | |
| 186 | for (i = 0; i < length; ++i) |
| 187 | hash = tolower(link_ref[i]) + (hash << 6) + (hash << 16) - hash; |
| 188 | |
| 189 | return hash; |
| 190 | } |
| 191 | |
| 192 | static struct link_ref * |
| 193 | add_link_ref( |
no outgoing calls
no test coverage detected