Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions time_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ kt_setfreq(double frequency)
tx.freq = (long)floor(frequency * (65536 * 1e6));
errno = 0;
i = ntp_adjtime(&tx);
if(i == -1 && errno == EPERM) {
Fail(NULL, 0, "Insufficient permissions");
}

/* XXX: what is the correct error test here ? */
assert(i >= 0);
}
Expand Down