aboutsummaryrefslogtreecommitdiff
path: root/toys/net/sntp.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/net/sntp.c')
-rw-r--r--toys/net/sntp.c2
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