mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-09-19 13:54:22 +00:00
Eggert deltas based on Shanks work
SCCS-file: zdump.c SCCS-SID: 7.8
This commit is contained in:
committed by
Paul Eggert
parent
1508b0d6f3
commit
4ee2dfadaf
@@ -82,7 +82,7 @@ extern void perror();
|
||||
|
||||
static char * abbr();
|
||||
static long delta();
|
||||
static void hunt();
|
||||
static time_t hunt();
|
||||
static int longest;
|
||||
static char * progname;
|
||||
static void show();
|
||||
@@ -177,7 +177,8 @@ char * argv[];
|
||||
if (delta(&newtm, &tm) != (newt - t) ||
|
||||
newtm.tm_isdst != tm.tm_isdst ||
|
||||
strcmp(abbr(&newtm), buf) != 0) {
|
||||
hunt(argv[i], t, newt);
|
||||
newt = hunt(argv[i], t, newt);
|
||||
newtm = *localtime(&newt);
|
||||
(void) strncpy(buf, abbr(&newtm),
|
||||
(sizeof buf) - 1);
|
||||
}
|
||||
@@ -208,7 +209,7 @@ char * argv[];
|
||||
;
|
||||
}
|
||||
|
||||
static void
|
||||
static time_t
|
||||
hunt(name, lot, hit)
|
||||
char * name;
|
||||
time_t lot;
|
||||
@@ -237,6 +238,7 @@ time_t hit;
|
||||
}
|
||||
show(name, lot, TRUE);
|
||||
show(name, hit, TRUE);
|
||||
return hit;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user