| 162 | } |
| 163 | |
| 164 | static size_t find_index(const u64 *template, u64 val) |
| 165 | { |
| 166 | for (size_t i = 0; i < tal_count(template); i++) { |
| 167 | if (template[i] == val) |
| 168 | return i; |
| 169 | } |
| 170 | abort(); |
| 171 | } |
| 172 | |
| 173 | /* All templates are of the same form. Output all the distinct values, then |
| 174 | * write out which one is used by each channel */ |
no test coverage detected