We want a minheap, not a maxheap, so this is backwards! */
| 50 | |
| 51 | /* We want a minheap, not a maxheap, so this is backwards! */ |
| 52 | static int less_comparer(const void *const ctx, |
| 53 | const void *const a, |
| 54 | const void *const b) |
| 55 | { |
| 56 | return get_dijkstra(global_dijkstra, global_map, |
| 57 | *(struct gossmap_node **)a)->score |
| 58 | > get_dijkstra(global_dijkstra, global_map, |
| 59 | *(struct gossmap_node **)b)->score; |
| 60 | } |
| 61 | |
| 62 | static void item_mover(void *const dst, const void *const src) |
| 63 | { |
nothing calls this directly
no test coverage detected