X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2F__tm_to_time.c;h=9f11805d6eaa4b5b932022d5f9e02601a0f300a5;hb=0636d5977aa796d78869ee310c6e69220b919eee;hp=3b1140b6cacef808af9b7785eddde5905013e17d;hpb=d5c164d5ff74f41976f2f983b14ce606fa396221;p=musl 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 :) */