From 1890868af4b8cf2593a4b0831e2fc69a44ec680b Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 27 Jul 2024 20:00:54 +0200 Subject: cmd/termcook: fix integer size cast warning --- src/cmd/init/driver/termcook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cmd/init/driver/termcook.c b/src/cmd/init/driver/termcook.c index ed851e3..0869d37 100644 --- a/src/cmd/init/driver/termcook.c +++ b/src/cmd/init/driver/termcook.c @@ -131,7 +131,7 @@ static void fs(void *) { for (;;) { struct ufs_request req; hid_t reqh = ufs_wait(buf, buflen, &req); - int id = (int)req.id; + int id = (uintptr_t)req.id; if (reqh < 0) errx(1, "ufs_wait error"); if (req.op == VFSOP_OPEN) { -- cgit v1.2.3