summaryrefslogtreecommitdiff
path: root/src/user/app/init/driver/ps2.c
diff options
context:
space:
mode:
authordzwdz2022-08-23 19:15:59 +0200
committerdzwdz2022-08-23 19:15:59 +0200
commit38cf66edaacc4e58b561bea8a77abfd3facf59fe (patch)
tree2e9ff33e195078fdcd454607082064e949b29bd4 /src/user/app/init/driver/ps2.c
parent03c5dd9462492e291c6a49b88e1cd9ab34d86b6f (diff)
shared/ring: rename ring_size to ring_used, add ring_avail
Diffstat (limited to 'src/user/app/init/driver/ps2.c')
-rw-r--r--src/user/app/init/driver/ps2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/init/driver/ps2.c b/src/user/app/init/driver/ps2.c
index 961ea53..85b83b7 100644
--- a/src/user/app/init/driver/ps2.c
+++ b/src/user/app/init/driver/ps2.c
@@ -61,7 +61,7 @@ static void main_loop(void) {
break;
case VFSOP_READ:
- while (ring_size((void*)&backlog) == 0) {
+ while (ring_used((void*)&backlog) == 0) {
/* read raw input until we have something to output */
int len = _syscall_read(fd, buf, sizeof buf, 0);
if (len == 0) break;