projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'nsz/math'
[musl]
/
src
/
time
/
tzset.c
diff --git
a/src/time/tzset.c
b/src/time/tzset.c
index
6d69957
..
7e836c2
100644
(file)
--- a/
src/time/tzset.c
+++ b/
src/time/tzset.c
@@
-15,15
+15,14
@@
int __dst_offset = 0;
weak_alias(__timezone, timezone);
weak_alias(__daylight, daylight);
weak_alias(__tzname, tzname);
weak_alias(__timezone, timezone);
weak_alias(__daylight, daylight);
weak_alias(__tzname, tzname);
-weak_alias(__dst_offset, dst_offset);
static char std_name[TZNAME_MAX+1];
static char dst_name[TZNAME_MAX+1];
/* all elements are zero-based */
static struct rule {
static char std_name[TZNAME_MAX+1];
static char dst_name[TZNAME_MAX+1];
/* all elements are zero-based */
static struct rule {
- char month;
- char week;
+
signed
char month;
+
signed
char week;
short day;
int time;
} __dst_start, __dst_end;
short day;
int time;
} __dst_start, __dst_end;
@@
-107,12
+106,12
@@
void tzset(void)
void __tzset(void)
{
void __tzset(void)
{
- static int lock, init;
+ static int lock
[2]
, init;
if (init) return;
if (init) return;
- LOCK(
&
lock);
+ LOCK(lock);
if (!init) tzset();
init=1;
if (!init) tzset();
init=1;
- UNLOCK(
&
lock);
+ UNLOCK(lock);
}
static int is_leap(int year)
}
static int is_leap(int year)