| 251 | } |
| 252 | |
| 253 | static u32 init_node_arr(struct gossmap_node *node_arr, size_t start) |
| 254 | { |
| 255 | size_t i; |
| 256 | for (i = start; i < tal_count(node_arr) - 1; i++) { |
| 257 | node_arr[i].nann_off = i + 1; |
| 258 | node_arr[i].chan_idxs = NULL; |
| 259 | } |
| 260 | node_arr[i].nann_off = UINT_MAX; |
| 261 | node_arr[i].chan_idxs = NULL; |
| 262 | |
| 263 | return start; |
| 264 | } |
| 265 | |
| 266 | /* Freelist links through node_off of unused entries. */ |
| 267 | static struct gossmap_node *next_free_node(struct gossmap *map) |
no outgoing calls
no test coverage detected