mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 14:13:58 +08:00
6ba5f5f9b8
POSIX mandates that `cmsg_len` in `struct cmsghdr` is a `socklen_t`, which is an `unsigned int`. Musl libc as used in Alpine implements this; Glibc ignores the spec and makes it a `size_t` ie `unsigned long`. To avoid the `-Wformat=` warning from the `%lu` on Alpine, cast this to an `unsigned long` always. Signed-off-by: Justin Cormack <justin.cormack@docker.com>