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