Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/time no need to adjust the off, hi is already at th...



details:   https://anonhg.NetBSD.org/src/rev/d3625366dbf6
branches:  trunk
changeset: 771068:d3625366dbf6
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 07 19:42:03 2011 +0000

description:
no need to adjust the off, hi is already at the right time.

diffstat:

 lib/libc/time/localtime.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r f8103d735a6f -r d3625366dbf6 lib/libc/time/localtime.c
--- a/lib/libc/time/localtime.c Mon Nov 07 15:51:31 2011 +0000
+++ b/lib/libc/time/localtime.c Mon Nov 07 19:42:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: localtime.c,v 1.62 2011/10/28 21:51:06 christos Exp $  */
+/*     $NetBSD: localtime.c,v 1.63 2011/11/07 19:42:03 christos Exp $  */
 
 /*
 ** This file is in the public domain, so clarified as of
@@ -10,7 +10,7 @@
 #if 0
 static char    elsieid[] = "@(#)localtime.c    8.17";
 #else
-__RCSID("$NetBSD: localtime.c,v 1.62 2011/10/28 21:51:06 christos Exp $");
+__RCSID("$NetBSD: localtime.c,v 1.63 2011/11/07 19:42:03 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -1935,8 +1935,6 @@
                                }
                                if (off) {
                                        t = hi;
-                                       if (off > 0)
-                                               t += off;
                                        break;
                                }
                        }



Home | Main Index | Thread Index | Old Index