aboutsummaryrefslogtreecommitdiffstats
path: root/src/mktime.c
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>1997-09-11 18:22:03 +0000
committerPaul Eggert <[email protected]>1997-09-11 18:22:03 +0000
commit89752145b5c217065527e106ca8e1a27a40d7c29 (patch)
tree8ec8b6d8610ad2d034cddf8c109c0b118c9ff6d2 /src/mktime.c
parentb93ad5e24b0d676e8d9a1ca4aca1e742758a7eb9 (diff)
automatically generated from GPLed version
Diffstat (limited to 'src/mktime.c')
-rw-r--r--src/mktime.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/mktime.c b/src/mktime.c
index b7c91ecf1f..d63f57232a 100644
--- a/src/mktime.c
+++ b/src/mktime.c
@@ -1,23 +1,23 @@
/* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
Contributed by Paul Eggert ([email protected]).
-NOTE: The canonical source of this file is maintained with the GNU C Library.
-Bugs can be reported to [email protected].
+ NOTE: The canonical source of this file is maintained with the GNU C Library.
+ Bugs can be reported to [email protected].
-This program is free software; you can redistribute it and/or modify it
-under the terms of the GNU General Public License as published by the
-Free Software Foundation; either version 2, or (at your option) any
-later version.
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2, or (at your option) any
+ later version.
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA. */
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ USA. */
/* Define this to have a standalone program to test this implementation of
mktime. */
@@ -227,10 +227,10 @@ __mktime_internal (tp, convert, offset)
[mon_remainder + 12 * negative_mon_remainder])
+ mday - 1);
+ int sec_requested = sec;
#if LEAP_SECONDS_POSSIBLE
/* Handle out-of-range seconds specially,
since ydhms_tm_diff assumes every minute has 60 seconds. */
- int sec_requested = sec;
if (sec < 0)
sec = 0;
if (59 < sec)