summaryrefslogtreecommitdiff
path: root/src/user/app/init/driver/ps2.c
diff options
context:
space:
mode:
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;