From 38cf66edaacc4e58b561bea8a77abfd3facf59fe Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 23 Aug 2022 19:15:59 +0200 Subject: shared/ring: rename ring_size to ring_used, add ring_avail --- src/user/app/init/driver/ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/init/driver/ps2.c') 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; -- cgit v1.2.3