| 42 | } |
| 43 | |
| 44 | static struct dijkstra *get_dijkstra(const struct dijkstra *dij, |
| 45 | const struct gossmap *map, |
| 46 | const struct gossmap_node *n) |
| 47 | { |
| 48 | return cast_const(struct dijkstra *, dij) + gossmap_node_idx(map, n); |
| 49 | } |
| 50 | |
| 51 | /* We want a minheap, not a maxheap, so this is backwards! */ |
| 52 | static int less_comparer(const void *const ctx, |
no test coverage detected