]> git.gsnw.org Git - fping.git/commit
fping: Initialize msghdr struct in a portable way
authorKhem Raj <raj.khem@gmail.com>
Mon, 29 Aug 2022 22:41:51 +0000 (15:41 -0700)
committerDavid Schweikert <david@schweikert.ch>
Sun, 27 Aug 2023 09:04:35 +0000 (11:04 +0200)
commitc0fbccb977c523ba671afdf0f37de40d26351f77
treef98b4167a55c968e7390356b09275d2ca9b61d7c
parentf94adaf29e8964bc3332a32669bc15f4d5300dee
fping: Initialize msghdr struct in a portable way

Initializing the structure assuming glibc layout results in
compile errors on musl, therefore do partial intialization and then
assigning the members individually.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
src/fping.c