Module Name: src
Committed By: martin
Date: Wed Apr 8 13:30:00 UTC 2009
Modified Files:
src/etc/rc.d: rtclocaltime
Log Message:
systime() is not needed here - as the man page clearly points out.
Noticed by pooka.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/etc/rc.d/rtclocaltime
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/rtclocaltime
diff -u src/etc/rc.d/rtclocaltime:1.8 src/etc/rc.d/rtclocaltime:1.9
--- src/etc/rc.d/rtclocaltime:1.8 Wed Apr 8 13:18:56 2009
+++ src/etc/rc.d/rtclocaltime Wed Apr 8 13:29:59 2009
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: rtclocaltime,v 1.8 2009/04/08 13:18:56 martin Exp $
+# $NetBSD: rtclocaltime,v 1.9 2009/04/08 13:29:59 martin Exp $
#
# PROVIDE: rtclocaltime
@@ -17,7 +17,7 @@
rtclocaltime_start()
{
rtcoff=$(awk 'BEGIN{
- offset = -int(strftime("%z", systime()));
+ offset = -int(strftime("%z"));
if (offset < 0) {
sign = -1;
offset = -offset;