| 277 | } |
| 278 | |
| 279 | static u32 init_node_arr(struct gossmap_node *node_arr, size_t start) |
| 280 | { |
| 281 | size_t i; |
| 282 | for (i = start; i < tal_count(node_arr) - 1; i++) { |
| 283 | node_arr[i].nann_off = i + 1; |
| 284 | node_arr[i].chan_idxs = NULL; |
| 285 | } |
| 286 | node_arr[i].nann_off = UINT_MAX; |
| 287 | node_arr[i].chan_idxs = NULL; |
| 288 | |
| 289 | return start; |
| 290 | } |
| 291 | |
| 292 | /* Freelist links through node_off of unused entries. */ |
| 293 | static struct gossmap_node *next_free_node(struct gossmap *map) |
no outgoing calls
no test coverage detected