summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2024-07-27 20:00:54 +0200
committerdzwdz2024-07-27 20:00:54 +0200
commit1890868af4b8cf2593a4b0831e2fc69a44ec680b (patch)
treee3aed1f9b54716d1e9fb79d281bf53abd4fa0821
parentfe6fbfa07aa8326926049cf62560d940bc7305c0 (diff)
cmd/termcook: fix integer size cast warning
-rw-r--r--src/cmd/init/driver/termcook.c2
1 files changed, 1 insertions, 1 deletions
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) {