mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
ntpquery: Work around sign comparison issue in CMSG_NXTHR w/ Clang+musl
See: https://github.com/SerenityOS/serenity/pull/26034 Co-authored-by: kleines Filmröllchen <[email protected]> Co-authored-by: Sönke Holz <[email protected]>
This commit is contained in:
1 parent
5b32f9e172
commit
d8593d6e7d
1 file changed
+1
-1
@@ -216,7 +216,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
cmsghdr* cmsg = CMSG_FIRSTHDR(&msg);
|
||||
VERIFY(cmsg->cmsg_level == SOL_SOCKET);
|
||||
VERIFY(cmsg->cmsg_type == SCM_TIMESTAMP);
|
||||
VERIFY(!CMSG_NXTHDR(&msg, cmsg));
|
||||
AK_IGNORE_DIAGNOSTIC("-Wsign-compare", VERIFY(!CMSG_NXTHDR(&msg, cmsg)));
|
||||
timeval kernel_receive_time;
|
||||
memcpy(&kernel_receive_time, CMSG_DATA(cmsg), sizeof(kernel_receive_time));
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user