summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-04-25 18:34:37 +0000
committerJim Meyering <jim@meyering.net>1994-04-25 18:34:37 +0000
commit085c609f77d5ea68b0bca13d4d0f204d129817b0 (patch)
tree3052f0bd27d12c32a22f19d34cf58bc5a576380c /lib
parent36f920112bcda1cd28278ea2284196b2f5eda160 (diff)
downloadcoreutils-085c609f77d5ea68b0bca13d4d0f204d129817b0.tar.xz
merge with 1.9.4g
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index fd545d6ca..3159c6d9a 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -102,12 +102,6 @@ extern struct tm *localtime();
static int yylex ();
static int yyerror ();
-#if !defined(lint) && !defined(SABER)
-static char RCS[] =
- "$Header: str2date.y,v 2.1 90/09/06 08:15:06 cronan Exp $";
-#endif /* !defined(lint) && !defined(SABER) */
-
-
#define EPOCH 1970
#define HOUR(x) ((time_t)(x) * 60)
#define SECSPERDAY (24L * 60L * 60L)
@@ -904,7 +898,7 @@ get_date(p, now)
if (! (tm = gmtime (&ftz.time)))
return -1;
- gmt = *tm;
+ gmt = *tm; /* Make a copy, in case localtime modifies *tm. */
if (! (tm = localtime (&ftz.time)))
return -1;