Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/time revert timezone() ifdef; it is wrong (pointed ...
details: https://anonhg.NetBSD.org/src/rev/3adfeb20e101
branches: trunk
changeset: 341305:3adfeb20e101
user: christos <christos%NetBSD.org@localhost>
date: Fri Oct 30 18:04:42 2015 +0000
description:
revert timezone() ifdef; it is wrong (pointed out by ginsbach)
diffstat:
lib/libc/time/strptime.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 49d665d08bae -r 3adfeb20e101 lib/libc/time/strptime.c
--- a/lib/libc/time/strptime.c Fri Oct 30 16:21:46 2015 +0000
+++ b/lib/libc/time/strptime.c Fri Oct 30 18:04:42 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strptime.c,v 1.53 2015/10/30 03:18:10 ginsbach Exp $ */
+/* $NetBSD: strptime.c,v 1.54 2015/10/30 18:04:42 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 2005, 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strptime.c,v 1.53 2015/10/30 03:18:10 ginsbach Exp $");
+__RCSID("$NetBSD: strptime.c,v 1.54 2015/10/30 18:04:42 christos Exp $");
#endif
#include "namespace.h"
@@ -467,10 +467,7 @@
if (ep != NULL) {
tm->tm_isdst = i;
#ifdef TM_GMTOFF
-#ifdef USG_COMPAT
tm->TM_GMTOFF = -timezone;
-#else
- tm->TM_GMTOFF = -timezone();
#endif
#endif
#ifdef TM_ZONE
Home |
Main Index |
Thread Index |
Old Index