X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftimesync%2Ftimesyncd-manager.c;h=a9e91c4d60645fa6d1e59fab2b68fb9db15f7b68;hp=edddc2f05e980800babf9aec95b604240b956a69;hb=2eec67acbb00593e414549a7e5b35eb7dd776b1b;hpb=d6d810fbf8071f8510450dbacd1d083f37603656 diff --git a/src/timesync/timesyncd-manager.c b/src/timesync/timesyncd-manager.c index edddc2f05..a9e91c4d6 100644 --- a/src/timesync/timesyncd-manager.c +++ b/src/timesync/timesyncd-manager.c @@ -21,21 +21,15 @@ #include #include -#include -#include -#include #include #include -#include #include #include #include #include #include #include -#include #include -#include #include "missing.h" #include "util.h" @@ -45,13 +39,8 @@ #include "list.h" #include "ratelimit.h" #include "strv.h" -#include "conf-parser.h" #include "sd-daemon.h" -#include "event-util.h" #include "network-util.h" -#include "clock-util.h" -#include "capability.h" -#include "mkdir.h" #include "timesyncd-conf.h" #include "timesyncd-manager.h" #include "time-util.h" @@ -98,7 +87,7 @@ * "NTP timestamps are represented as a 64-bit unsigned fixed-point number, * in seconds relative to 0h on 1 January 1900." */ -#define OFFSET_1900_1970 2208988800UL +#define OFFSET_1900_1970 UINT64_C(2208988800) #define RETRY_USEC (30*USEC_PER_SEC) #define RATELIMIT_INTERVAL_USEC (10*USEC_PER_SEC) @@ -516,7 +505,7 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re return manager_connect(m); } - len = recvmsg(fd, &msghdr, MSG_DONTWAIT|MSG_CMSG_CLOEXEC); + len = recvmsg(fd, &msghdr, MSG_DONTWAIT); if (len < 0) { if (errno == EAGAIN) return 0;