diff options
| author | Xin LI <delphij@FreeBSD.org> | 2018-02-28 06:23:12 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2018-02-28 06:23:12 +0000 |
| commit | d14ac12f8738acac881f20b4d6244cfc22c68ead (patch) | |
| tree | 8888cc3c4a7235bf8abd28681330d20442bc3705 /libntp/adjtime.c | |
| parent | 07ac48c3644021279e113d530764a231e27490a7 (diff) | |
Diffstat (limited to 'libntp/adjtime.c')
| -rw-r--r-- | libntp/adjtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libntp/adjtime.c b/libntp/adjtime.c index a8e65808bf29..b536cc555d9a 100644 --- a/libntp/adjtime.c +++ b/libntp/adjtime.c @@ -314,7 +314,7 @@ adjtime (struct timeval *delta, struct timeval *olddelta) /* * Get the current clock period (nanoseconds) */ - if (ClockPeriod (CLOCK_REALTIME, 0, &period, 0) < 0) + if (ClockPeriod (CLOCK_REALTIME, 0, &period, 0) == -1) return -1; /* @@ -354,7 +354,7 @@ adjtime (struct timeval *delta, struct timeval *olddelta) adj.tick_count = 0; } - if (ClockAdjust (CLOCK_REALTIME, &adj, &oldadj) < 0) + if (ClockAdjust (CLOCK_REALTIME, &adj, &oldadj) == -1) return -1; /* |
