systime() is not needed here - as the man page clearly points out.
Noticed by pooka.
This commit is contained in:
parent
910b7ec5c5
commit
58cbc21957
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/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
|
# PROVIDE: rtclocaltime
|
||||||
|
@ -17,7 +17,7 @@ stop_cmd=":"
|
||||||
rtclocaltime_start()
|
rtclocaltime_start()
|
||||||
{
|
{
|
||||||
rtcoff=$(awk 'BEGIN{
|
rtcoff=$(awk 'BEGIN{
|
||||||
offset = -int(strftime("%z", systime()));
|
offset = -int(strftime("%z"));
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
sign = -1;
|
sign = -1;
|
||||||
offset = -offset;
|
offset = -offset;
|
||||||
|
|
Loading…
Reference in New Issue