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