[hackers] [ubase] Print a warning for -w to let the user know that we are assuming UTC || sin

From: <git_AT_suckless.org>
Date: Tue, 03 Jun 2014 17:29:27 +0200

commit 8216a97519e8d9adfc56ede64e44e8574701e531
Author: sin <sin_AT_2f30.org>
Date: Tue Jun 3 16:24:53 2014 +0100

    Print a warning for -w to let the user know that we are assuming UTC

diff --git a/hwclock.c b/hwclock.c
index b48d46c..e26fd73 100644
--- a/hwclock.c
+++ b/hwclock.c
_AT_@ -155,6 +155,7 @@ systohc(char *dev)
         gettimeofday(&tv, NULL);
         t = tv.tv_sec;
         tm = gmtime(&t);
+ weprintf("warning: assuming UTC for systohc
");
         writertctm(tm, fd);
         close(fd);
 }
Received on Tue Jun 03 2014 - 17:29:27 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 03 2014 - 17:36:08 CEST