musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat
-rw-r--r--src/ipc/ftok.c 2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc/ftok.c b/src/ipc/ftok.c
index cd6002ed..c36b4b60 100644
--- a/src/ipc/ftok.c
+++ b/src/ipc/ftok.c
@@ -6,5 +6,5 @@ key_t ftok(const char *path, int id)
struct stat st;
if (stat(path, &st) < 0) return -1;
- return ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16) | ((id & 0xff) << 24));
+ return ((st.st_ino & 0xffff) | ((st.st_dev & 0xff) << 16) | ((id & 0xffu) << 24));
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 03:06:42 +0000

AltStyle によって変換されたページ (->オリジナル) /