1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-06 19:01:43 +00:00
SCCS-file: zic.c
SCCS-SID: 7.67
This commit is contained in:
Arthur David Olson
1996-05-02 14:12:42 -04:00
committed by Paul Eggert
parent 01fe5cd1ac
commit 67c4394f7d

6
zic.c
View File

@ -335,8 +335,6 @@ static const int len_years[2] = {
DAYSPERNYEAR, DAYSPERLYEAR
};
static time_t ats[TZ_MAX_TIMES];
static unsigned char types[TZ_MAX_TIMES];
static struct attype {
time_t at;
unsigned char type;
@ -1339,6 +1337,8 @@ const char * const name;
register int i, j;
static char * fullname;
static struct tzhead tzh;
time_t ats[TZ_MAX_TIMES];
unsigned char types[TZ_MAX_TIMES];
if (timecnt > 1)
(void) qsort((void *) attypes, (size_t) timecnt,
@ -1637,7 +1637,7 @@ addtt(starttime, type)
const time_t starttime;
const int type;
{
if (timecnt != 0 && type == types[timecnt - 1])
if (timecnt != 0 && type == attypes[timecnt - 1].type)
return; /* easy enough! */
if (timecnt == 0 && type == 0 && isdsts[0] == 0)
return; /* handled by default rule */