timesyncd: merge some variable declarations

This commit is contained in:
Lennart Poettering
2022-03-18 23:53:24 +01:00
parent 9a8b43021b
commit 5ba674cca5
2 changed files with 3 additions and 7 deletions
+2 -5
View File
@@ -425,12 +425,9 @@ static int manager_receive_response(sd_event_source *source, int fd, uint32_t re
struct cmsghdr *cmsg;
struct timespec *recv_time = NULL;
ssize_t len;
double origin, receive, trans, dest;
double delay, offset;
double root_distance;
double origin, receive, trans, dest, delay, offset, root_distance;
bool spike;
int leap_sec;
int r;
int leap_sec, r;
assert(source);
assert(m);
+1 -2
View File
@@ -22,9 +22,8 @@
#include "user-util.h"
static int load_clock_timestamp(uid_t uid, gid_t gid) {
usec_t min = TIME_EPOCH * USEC_PER_SEC, ct;
_cleanup_close_ int fd = -1;
usec_t min = TIME_EPOCH * USEC_PER_SEC;
usec_t ct;
int r;
/* Let's try to make sure that the clock is always