aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert1997-09-11 18:22:03 +0000
committerPaul Eggert1997-09-11 18:22:03 +0000
commit89752145b5c217065527e106ca8e1a27a40d7c29 (patch)
tree8ec8b6d8610ad2d034cddf8c109c0b118c9ff6d2 /src
parentb93ad5e24b0d676e8d9a1ca4aca1e742758a7eb9 (diff)
downloademacs-89752145b5c217065527e106ca8e1a27a40d7c29.tar.gz
emacs-89752145b5c217065527e106ca8e1a27a40d7c29.zip
automatically generated from GPLed version
Diffstat (limited to 'src')
-rw-r--r--src/mktime.c30
-rw-r--r--src/strftime.c29
2 files changed, 29 insertions, 30 deletions
diff --git a/src/mktime.c b/src/mktime.c
index b7c91ecf1f7..d63f57232aa 100644
--- a/src/mktime.c
+++ b/src/mktime.c
@@ -1,23 +1,23 @@
1/* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. 1/* Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
2 Contributed by Paul Eggert (eggert@twinsun.com). 2 Contributed by Paul Eggert (eggert@twinsun.com).
3 3
4NOTE: The canonical source of this file is maintained with the GNU C Library. 4 NOTE: The canonical source of this file is maintained with the GNU C Library.
5Bugs can be reported to bug-glibc@prep.ai.mit.edu. 5 Bugs can be reported to bug-glibc@prep.ai.mit.edu.
6 6
7This program is free software; you can redistribute it and/or modify it 7 This program is free software; you can redistribute it and/or modify it
8under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
9Free Software Foundation; either version 2, or (at your option) any 9 Free Software Foundation; either version 2, or (at your option) any
10later version. 10 later version.
11 11
12This program is distributed in the hope that it will be useful, 12 This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
19Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20USA. */ 20 USA. */
21 21
22/* Define this to have a standalone program to test this implementation of 22/* Define this to have a standalone program to test this implementation of
23 mktime. */ 23 mktime. */
@@ -227,10 +227,10 @@ __mktime_internal (tp, convert, offset)
227 [mon_remainder + 12 * negative_mon_remainder]) 227 [mon_remainder + 12 * negative_mon_remainder])
228 + mday - 1); 228 + mday - 1);
229 229
230 int sec_requested = sec;
230#if LEAP_SECONDS_POSSIBLE 231#if LEAP_SECONDS_POSSIBLE
231 /* Handle out-of-range seconds specially, 232 /* Handle out-of-range seconds specially,
232 since ydhms_tm_diff assumes every minute has 60 seconds. */ 233 since ydhms_tm_diff assumes every minute has 60 seconds. */
233 int sec_requested = sec;
234 if (sec < 0) 234 if (sec < 0)
235 sec = 0; 235 sec = 0;
236 if (59 < sec) 236 if (59 < sec)
diff --git a/src/strftime.c b/src/strftime.c
index fea7c740967..fc0c539c669 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -1,22 +1,22 @@
1/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. 1/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc.
2 2
3NOTE: The canonical source of this file is maintained with the GNU C Library. 3 NOTE: The canonical source of this file is maintained with the GNU C Library.
4Bugs can be reported to bug-glibc@prep.ai.mit.edu. 4 Bugs can be reported to bug-glibc@prep.ai.mit.edu.
5 5
6This program is free software; you can redistribute it and/or modify it 6 This program is free software; you can redistribute it and/or modify it
7under the terms of the GNU General Public License as published by the 7 under the terms of the GNU General Public License as published by the
8Free Software Foundation; either version 2, or (at your option) any 8 Free Software Foundation; either version 2, or (at your option) any
9later version. 9 later version.
10 10
11This program is distributed in the hope that it will be useful, 11 This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of 12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details. 14 GNU General Public License for more details.
15 15
16You should have received a copy of the GNU General Public License 16 You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software 17 along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19USA. */ 19 USA. */
20 20
21#ifdef HAVE_CONFIG_H 21#ifdef HAVE_CONFIG_H
22# include <config.h> 22# include <config.h>
@@ -134,7 +134,6 @@ extern char *tzname[];
134#ifdef _LIBC 134#ifdef _LIBC
135# define gmtime_r __gmtime_r 135# define gmtime_r __gmtime_r
136# define localtime_r __localtime_r 136# define localtime_r __localtime_r
137extern int __tz_compute __P ((time_t timer, const struct tm *tm));
138# define tzname __tzname 137# define tzname __tzname
139# define tzset __tzset 138# define tzset __tzset
140#else 139#else