chiark / gitweb /
journal-remote: fix client_cert memory leak
[elogind.git] / src / timesync / timesyncd-manager.c
index edddc2f05e980800babf9aec95b604240b956a69..73ac7eecbf919954e401638fd2d5a0ed8993c41b 100644 (file)
@@ -98,7 +98,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 +516,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;