From 49d095e34b9d9a364437bb3b1b6b1e7b07328d38 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 12 Apr 2022 19:50:19 +0200 Subject: shared: fix some minor warnings --- src/init/driver/ansiterm.c | 2 +- src/init/driver/ps2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/init/driver') diff --git a/src/init/driver/ansiterm.c b/src/init/driver/ansiterm.c index 115744b..01ad984 100644 --- a/src/init/driver/ansiterm.c +++ b/src/init/driver/ansiterm.c @@ -83,7 +83,7 @@ void ansiterm_drv(void) { break; case VFSOP_WRITE: - for (int i = 0; i < res.len; i++) + for (size_t i = 0; i < res.len; i++) in_char(buf[i]); /* if (pendingFlush) */ flush(); _syscall_fs_respond(NULL, res.len); diff --git a/src/init/driver/ps2.c b/src/init/driver/ps2.c index 55869f5..c0bd50f 100644 --- a/src/init/driver/ps2.c +++ b/src/init/driver/ps2.c @@ -61,7 +61,7 @@ static void main_loop(void) { /* read raw input until we have something to output */ int len = _syscall_read(fd, buf, sizeof buf, 0); if (len == 0) break; - for (size_t i = 0; i < len; i++) + for (int i = 0; i < len; i++) parse_scancode(buf[i]); } if (res.capacity > backlog_size) -- cgit v1.2.3