~sircmpwn/himitsu-devel

himitsu-totp: Update for stdlib and himitsu changes v1 APPLIED

Eyal Sawady: 1
 Update for stdlib and himitsu changes

 1 files changed, 4 insertions(+), 3 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/himitsu-devel/patches/33159/mbox | git am -3
Learn more about email & git

[PATCH himitsu-totp] Update for stdlib and himitsu changes Export this patch

---
 cmd/hitotp/main.ha | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/cmd/hitotp/main.ha b/cmd/hitotp/main.ha
index df4068e..661d5a7 100644
--- a/cmd/hitotp/main.ha
+++ b/cmd/hitotp/main.ha
@@ -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));
	};
-- 
2.36.1
Thanks!

To git@git.sr.ht:~sircmpwn/himitsu-totp
   0c2de08..d171bea  master -> master