socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len
commit7647d1901ea2b34fafd95ecddf52905a3d314368
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 May 2023 12:48:06 +0000 (1 14:48 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 1 May 2023 13:05:09 +0000 (1 15:05 +0200)
treeb3b0d7315b41034b745870a5e984c6f12f6728c4
parente11a6734c4607fee78a1c4fa16c8474f95270b74
socket: Fix tst-cmsghdr-skeleton.c use of cmsg_len

cmsg_len is supposed to be socklen_t according to standards, but it was made
size_t on Linux, see BZ 16919. For ports that have it socklen_t, SIZE_MAX is
too large. We can however explicitly cast it to the type of cmsg_len so it
will fit according to that type.
socket/tst-cmsghdr-skeleton.c