From cb3d852ca08ec5fbd9f1d9e3f366d378b357655e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 27 Oct 2019 15:30:08 -0500 Subject: Technosaurus on github pointed out the error message should say adjtimex. --- toys/net/sntp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/net') diff --git a/toys/net/sntp.c b/toys/net/sntp.c index b58abc10..15e74440 100644 --- a/toys/net/sntp.c +++ b/toys/net/sntp.c @@ -214,7 +214,7 @@ void sntp_main(void) memset(&tx, 0, sizeof(struct timex)); tx.offset = tv2.tv_sec*1000000+tv2.tv_nsec/1000; tx.modes = ADJ_OFFSET_SINGLESHOT; - if (adjtimex(&tx) == -1) perror_exit("adjtime"); + if (adjtimex(&tx) == -1) perror_exit("adjtimex"); } // Display the time and offset -- cgit v1.2.3