From 08b79ff4aedcdae2b1536db1e88b3ae01e76b4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 27 Apr 2026 22:27:10 +0800 Subject: [PATCH] Platform (OpenBSD): silences a compiler warning Co-authored-by: Copilot --- src/common/impl/FFPlatform_unix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/impl/FFPlatform_unix.c b/src/common/impl/FFPlatform_unix.c index 8320a1771..76afb3597 100644 --- a/src/common/impl/FFPlatform_unix.c +++ b/src/common/impl/FFPlatform_unix.c @@ -18,6 +18,7 @@ #include #elif defined(__OpenBSD__) #include + #include #include #include "common/path.h" #elif defined(__HAIKU__) @@ -97,7 +98,7 @@ static void getExePath(FFPlatform* platform) { struct stat st; if (stat(exePath, &st) == 0 && S_ISREG(st.st_mode)) { int cntp; - struct kinfo_file* kf = kvm_getfiles(kd, KERN_FILE_BYPID, platform->pid, sizeof(*kf), &cntp); + struct kinfo_file* kf = kvm_getfiles(kd, KERN_FILE_BYPID, (pid_t) platform->pid, sizeof(*kf), &cntp); if (kf) { int i; for (i = 0; i < cntp; i++) {