socket: Use offsetof in SUN_LEN (bug 29578)
authorAndreas Schwab <schwab@suse.de>
Mon, 19 Sep 2022 08:10:09 +0000 (10:10 +0200)
committerAndreas Schwab <schwab@suse.de>
Mon, 10 Oct 2022 07:30:26 +0000 (09:30 +0200)
commitc15318bfc5499d835c434a4d98b688aa2d928412
tree58e935f8fff70d4d1c17cf625edca2203f2b4a43
parent954b8f38958de72c4712088735eb175118f17b51
socket: Use offsetof in SUN_LEN (bug 29578)

Use offsetof instead of its traditional expansion in the definition of the
SUN_LEN macro, to avoid a warning from the undefined behaviour sanitizer.
socket/sys/un.h