~sircmpwn/hare-ssh

022220699319df0f6aac922e09bb9bbc7518b77d — Armin Preiml 5 months ago a05637b
net::ssh: update stdlib changes
2 files changed, 3 insertions(+), 8 deletions(-)

M net/ssh/client.ha
M net/ssh/proto.ha
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;
};