~sircmpwn/himitsu-totp

d171beaaa3df2da26df61662525b9781569addf6 — Eyal Sawady 10 days ago 0c2de08 master
Update for stdlib and himitsu changes
1 files changed, 4 insertions(+), 3 deletions(-)

M cmd/hitotp/main.ha
M cmd/hitotp/main.ha => cmd/hitotp/main.ha +4 -3
@@ 101,10 101,11 @@ export fn main() void = {
	};

	let buf = path::init();
	const sockpath = path::set(&buf, dirs::state("himitsu"), "socket")!;
	// TODO: Bubble up dirs::runtime errors
	const sockpath = path::set(&buf, dirs::runtime()!, "himitsu")!;
	let conn = match (unix::connect(sockpath)) {
	case let s: io::file =>
		yield s;
	case let s: net::socket =>
		yield s: io::file;
	case let e: net::error =>
		fmt::fatal(net::strerror(e));
	};