Date: Tue, 14 Apr 1998 11:16:48 +0200 (MET DST) From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE> To: ache@FreeBSD.ORG (Andrey A. Chernov) Cc: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sbin@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/adjkerntz adjkerntz.8 adjkerntz.c Message-ID: <199804140916.LAA00792@rvc1.informatik.ba-stuttgart.de> In-Reply-To: <199804112118.OAA02144@freefall.freebsd.org> from "Andrey A. Chernov" at "Apr 11, 98 02:18:57 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> ache 1998/04/11 14:18:57 PDT > > Modified files: > sbin/adjkerntz adjkerntz.8 adjkerntz.c > Log: > Implement Helbig idea of offset calculation reducing mktime() calls > Immediately exit if /etc/wall_cmos_clock not present Now, the `-s' option is obsolete, since there is no nonexisting local time during switch two or from daylight saving time. That is, for initial_sec >= 0, after local = localtime(&initial_sec); ... localsec = mktime(&local); you will always end up with localsec == initial_sec So the code of adjkerntz can be decomplexified in this respect. OTOH, you don't handle ambiguous CMOS local time during booting (adjkerntz -i) at all. Wolfgang > > Revision Changes Path > 1.15 +3 -3 src/sbin/adjkerntz/adjkerntz.8 > 1.23 +22 -22 src/sbin/adjkerntz/adjkerntz.c > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804140916.LAA00792>