summaryrefslogtreecommitdiff
path: root/src/time
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2013-02-02 03:08:57 +0100
committerrofl0r <retnyg@gmx.net>2013-02-02 03:19:25 +0100
commitc50925071cce9c6342597f5671e30d2970c6ff4a (patch)
tree32279f7c94dfb0b2b76c4eaed3880247a45a7adf /src/time
parentfacc6acbfd20accea435d10fdd070b23877e40db (diff)
downloadmusl-c50925071cce9c6342597f5671e30d2970c6ff4a.tar.gz
make some arrays const
this way they'll go into .rodata, decreasing memory pressure.
Diffstat (limited to 'src/time')
-rw-r--r--src/time/__tm_to_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/__tm_to_time.c b/src/time/__tm_to_time.c
index 3b1140b6..9f11805d 100644
--- a/src/time/__tm_to_time.c
+++ b/src/time/__tm_to_time.c
@@ -26,7 +26,7 @@ time_t __tm_to_time(struct tm *tm)
z100 = Q(z4, 25);
z400 = Q(z100, 4);
day += year*365 + z4 - z100 + z400 +
- month[(int []){0,31,59,90,120,151,181,212,243,273,304,334}];
+ month[(const int []){0,31,59,90,120,151,181,212,243,273,304,334}];
return (long long)day*86400
+ tm->tm_hour*3600 + tm->tm_min*60 + tm->tm_sec
- -946684800; /* the dawn of time :) */