commit 86f0ac2912865ff0c3956e4bf2e60f605c231668
parent d5072e7cefad607d45b817cd3826b1f772b5f767
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 22 Oct 2021 10:14:37 +0200
cmd/iobus: update register_file API
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmd/iobus/main.ha b/cmd/iobus/main.ha
@@ -20,10 +20,10 @@ export fn main() void = {
const userfd = iobus::busfile(userbus);
defer io::close(userfd);
- const in = iobus::register_file(mainbus, os::stdin_file);
+ const in = iobus::register_file(mainbus, os::stdin_file)!;
// XXX: io_uring has a somewhat arbitrary limitation on registering
// another uring as a file, so we can't do this.
- //const userfd = iobus::register_file(mainbus, userfd);
+ //const userfd = iobus::register_file(mainbus, userfd)!;
let pollin = iobus::poll(mainbus, in, poll::event::POLLIN)!;
let polluser = iobus::poll(mainbus, userfd, poll::event::POLLIN)!;