aboutsummaryrefslogtreecommitdiff
path: root/timezone/zdump.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-22 19:51:38 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-22 19:51:38 +0000
commitc0df57e1ce270466be342d9998f72633764b22dc (patch)
treeca78fbaf7ff455cda82f9764da9cbba54e258479 /timezone/zdump.c
parent9d08fbbb29a4a0866b4ff642893c7dd97575b56e (diff)
downloadglibc-c0df57e1ce270466be342d9998f72633764b22dc.zip
glibc-c0df57e1ce270466be342d9998f72633764b22dc.tar.gz
glibc-c0df57e1ce270466be342d9998f72633764b22dc.tar.bz2
Update.
2003-09-22 Ulrich Drepper <drepper@redhat.com> * timezone/zdump.c: Update from tzcode2003c. * timezone/zic.c: Likewise. * timezone/leapseconds: Update from tzdata2003c.
Diffstat (limited to 'timezone/zdump.c')
-rw-r--r--timezone/zdump.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/timezone/zdump.c b/timezone/zdump.c
index cc27d75..9faeaf2 100644
--- a/timezone/zdump.c
+++ b/timezone/zdump.c
@@ -1,8 +1,4 @@
-#ifndef lint
-#ifndef NOID
-static char elsieid[] = "@(#)zdump.c 7.29";
-#endif /* !defined NOID */
-#endif /* !defined lint */
+static char elsieid[] = "@(#)zdump.c 7.31";
/*
** This code has been made independent of the rest of the time
@@ -163,6 +159,11 @@ char * argv[];
(void) textdomain(TZ_DOMAIN);
#endif /* HAVE_GETTEXT - 0 */
progname = argv[0];
+ for (i = 1; i < argc; ++i)
+ if (strcmp(argv[i], "--version") == 0) {
+ (void) printf("%s\n", elsieid);
+ (void) exit(EXIT_SUCCESS);
+ }
vflag = 0;
cutoff = NULL;
while ((c = getopt(argc, argv, "c:v")) == 'c' || c == 'v')
@@ -172,7 +173,7 @@ char * argv[];
if ((c != EOF && c != -1) ||
(optind == argc - 1 && strcmp(argv[optind], "=") == 0)) {
(void) fprintf(stderr,
-_("%s: usage is %s [ -v ] [ -c cutoff ] zonename ...\n"),
+_("%s: usage is %s [ --version ] [ -v ] [ -c cutoff ] zonename ...\n"),
argv[0], argv[0]);
(void) exit(EXIT_FAILURE);
}