diff options
author | Rob Landley <rob@landley.net> | 2019-10-27 15:30:08 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2019-10-27 15:30:08 -0500 |
commit | cb3d852ca08ec5fbd9f1d9e3f366d378b357655e (patch) | |
tree | 3ede53b480cd7e7d277696e3adf7f9cb4c66fa1e /toys/net | |
parent | b30fd4cb656d7a98c12f63fbb225db4e2cb3a776 (diff) | |
download | toybox-cb3d852ca08ec5fbd9f1d9e3f366d378b357655e.tar.gz |
Technosaurus on github pointed out the error message should say adjtimex.
Diffstat (limited to 'toys/net')
-rw-r--r-- | toys/net/sntp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |