---
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