systime() is not needed here - as the man page clearly points out.

Noticed by pooka.
This commit is contained in:
martin 2009-04-08 13:29:59 +00:00
parent 910b7ec5c5
commit 58cbc21957
1 changed files with 2 additions and 2 deletions

View File

@ -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 @@ stop_cmd=":"
rtclocaltime_start()
{
rtcoff=$(awk 'BEGIN{
offset = -int(strftime("%z", systime()));
offset = -int(strftime("%z"));
if (offset < 0) {
sign = -1;
offset = -offset;