diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-13 14:30:49 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-02-13 14:30:49 +0000 |
commit | 2b7ac6ec2413e12e1a18b11df5270c2c9f5f9975 (patch) | |
tree | 9170a12006828aa6a200ba6f07fd520ede4d8905 /src/ipcpd/normal/enroll.c | |
parent | d26df9b9fd1dd50ed9c26518fcecfe2af7ca4868 (diff) | |
parent | 8e769c22fb8f772262130bb82f862f377e05f513 (diff) | |
download | ouroboros-2b7ac6ec2413e12e1a18b11df5270c2c9f5f9975.tar.gz ouroboros-2b7ac6ec2413e12e1a18b11df5270c2c9f5f9975.zip |
Merged in dstaesse/ouroboros/be-bsd (pull request #374)
ipcpd: Fix build on FreeBSD
Diffstat (limited to 'src/ipcpd/normal/enroll.c')
-rw-r--r-- | src/ipcpd/normal/enroll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/normal/enroll.c b/src/ipcpd/normal/enroll.c index 94e171c0..d09a62a9 100644 --- a/src/ipcpd/normal/enroll.c +++ b/src/ipcpd/normal/enroll.c @@ -217,7 +217,7 @@ int enroll_boot(char * dst_name) rtt.tv_sec = ntoh64(((uint64_t *) data)[0]); rtt.tv_nsec = ntoh64(((uint64_t *) data)[1]); - if (abs(ts_diff_ms(&t0, &rtt)) - delta_t > ENROLL_WARN_TIME_OFFSET) + if (labs(ts_diff_ms(&t0, &rtt)) - delta_t > ENROLL_WARN_TIME_OFFSET) log_warn("Clock offset above threshold."); free(data); |