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