summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-04-25 18:30:47 +0000
committerJim Meyering <jim@meyering.net>1994-04-25 18:30:47 +0000
commit45860c29bc4c207514a1ca66c1f28e4ec20ed40d (patch)
tree969f886c3fbb86a231c641de6790bbc4124b7de1
parentfebe31de876917ead522c03f91758f6ce6ca81f3 (diff)
downloadgnulib-45860c29bc4c207514a1ca66c1f28e4ec20ed40d.tar.gz
GNU shell utilitiesSHELLUTILS-1_9_4h
-rw-r--r--lib/getdate.y8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index fd545d6ca0..3159c6d9a0 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;