commit: 6fb41411881d8f12c6b8b0e8d39473bc3e8f6b7f
parent a21ba99fa08e9e5ca6f16e990577bdff73b90979
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 24 May 2021 08:49:50 -0400
Fix typo
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/content/blog/io_uring-finger-server.gmi b/content/blog/io_uring-finger-server.gmi
@@ -123,9 +123,9 @@ let sigfd = signalfd::signalfd(-1, &mask, 0)!;
defer rt::close(sigfd)!;
const files = [net::listenerfd(serv) as int, sigfd];
-io_uring::register_files(&uring, files)!;
+io_uring::register_files(&ring, files)!;
-const sqe = io_uring::must_get_sqe(&uring);
+const sqe = io_uring::must_get_sqe(&ring);
io_uring::poll_add(sqe, 1, rt::POLLIN: uint, flags::FIXED_FILE);
io_uring::set_user(sqe, &sigfd);
```
diff --git a/content/blog/io_uring-finger-server.md b/content/blog/io_uring-finger-server.md
@@ -187,9 +187,9 @@ let sigfd = signalfd::signalfd(-1, &mask, 0)!;
defer rt::close(sigfd)!;
const files = [net::listenerfd(serv) as int, sigfd];
-io_uring::register_files(&uring, files)!;
+io_uring::register_files(&ring, files)!;
-const sqe = io_uring::must_get_sqe(&uring);
+const sqe = io_uring::must_get_sqe(&ring);
io_uring::poll_add(sqe, 1, rt::POLLIN: uint, flags::FIXED_FILE);
io_uring::set_user(sqe, &sigfd);
```