| 178 | } |
| 179 | |
| 180 | struct chan *first_chan(const struct node *node, struct chan_map_iter *i) |
| 181 | { |
| 182 | if (!node_uses_chan_map(node)) { |
| 183 | i->i.off = 0; |
| 184 | return next_chan_arr(node, i); |
| 185 | } |
| 186 | |
| 187 | return chan_map_first(&node->chans.map, i); |
| 188 | } |
| 189 | |
| 190 | struct chan *next_chan(const struct node *node, struct chan_map_iter *i) |
| 191 | { |
no test coverage detected