diff options
Diffstat (limited to 'src/kernel/arch/i386/driver/ps2.c')
-rw-r--r-- | src/kernel/arch/i386/driver/ps2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/driver/ps2.c b/src/kernel/arch/i386/driver/ps2.c index 97e2878..aaa3156 100644 --- a/src/kernel/arch/i386/driver/ps2.c +++ b/src/kernel/arch/i386/driver/ps2.c @@ -54,7 +54,7 @@ static void accept(struct vfs_request *req) { if (req->caller) { // clamp between 0, sizeof buf ret = req->output.len; - if (ret > sizeof buf) ret = sizeof buf; + if (ret > (int)sizeof buf) ret = sizeof buf; if (ret < 0) ret = 0; ret = ps2_read(buf, ret); @@ -71,4 +71,6 @@ static void accept(struct vfs_request *req) { } } -static bool is_ready(struct vfs_backend *self) { return blocked_on == NULL; } +static bool is_ready(struct vfs_backend __attribute__((unused)) *self) { + return blocked_on == NULL; +} |