| 323 | } |
| 324 | |
| 325 | static int cmp_packed_ref_records(const void *v1, const void *v2, |
| 326 | void *cb_data) |
| 327 | { |
| 328 | const struct snapshot *snapshot = cb_data; |
| 329 | const struct snapshot_record *e1 = v1, *e2 = v2; |
| 330 | const char *r1 = e1->start + snapshot_hexsz(snapshot) + 1; |
| 331 | const char *r2 = e2->start + snapshot_hexsz(snapshot) + 1; |
| 332 | |
| 333 | return cmp_packed_refname(r1, r2); |
| 334 | } |
| 335 | |
| 336 | /* |
| 337 | * Compare a snapshot record at `rec` to the specified NUL-terminated |
no test coverage detected