| 223 | } |
| 224 | |
| 225 | static bool check_unique(struct param *copy, |
| 226 | int (*compar) (const struct param *a, |
| 227 | const struct param *b, void *unused)) |
| 228 | { |
| 229 | asort(copy, tal_count(copy), compar, NULL); |
| 230 | return check_distinct(copy, compar); |
| 231 | } |
| 232 | |
| 233 | /* |
| 234 | * Verify consistent internal state. |
no test coverage detected