M net/ssh/client.ha => net/ssh/client.ha +1 -1
@@ 160,7 160,7 @@ fn client_verexch(client: *client) (void | error) = {
fn toknext(tok: *strings::tokenizer) (str | protoerror) = {
match (strings::next_token(tok)) {
- case void =>
+ case done =>
return protoerror;
case let token: str =>
return token;
M net/ssh/proto.ha => net/ssh/proto.ha +2 -7
@@ 88,13 88,8 @@ fn readnamelist(src: *memio::stream) ([]str | protoerror) = {
const list = readstr(src)?;
const tok = strings::tokenize(list, ",");
let items: []str = [];
- for (true) {
- match (strings::next_token(&tok)) {
- case void =>
- break;
- case let item: str =>
- append(items, item);
- };
+ for (let item => strings::next_token(&tok)) {
+ append(items, item);
};
return items;
};