mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2026-10-05 19:35:33 +00:00
isset -> tz_is_set to avoid 4.[23] collission
SCCS-file: localtime.c SCCS-SID: 2.14
This commit is contained in:
committed by
Paul Eggert
parent
546394c2b2
commit
d9cee049f3
+3
-3
@@ -44,7 +44,7 @@ struct state {
|
||||
|
||||
static struct state s;
|
||||
|
||||
static char isset;
|
||||
static char tz_is_set;
|
||||
|
||||
char * tzname[2] = { "GMT", "GMT" };
|
||||
|
||||
@@ -180,7 +180,7 @@ char * name;
|
||||
{
|
||||
register int result;
|
||||
|
||||
isset = TRUE;
|
||||
tz_is_set = TRUE;
|
||||
if (name != 0 && *name == '\0')
|
||||
result = 0; /* Use built-in GMT */
|
||||
else {
|
||||
@@ -240,7 +240,7 @@ struct tm *
|
||||
localtime(timep)
|
||||
long * timep;
|
||||
{
|
||||
if (!isset)
|
||||
if (!tz_is_set)
|
||||
(void) settz(getenv("TZ"));
|
||||
return timesub(timep, &s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user