kern

changeset 39:92297f65aaef

- removed redundant call to day_of_year in gmtime_r
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 12 Jun 2011 01:46:53 +0300
parents e6f75f91e606
children 710739e33da8
files src/klibc/time.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/src/klibc/time.c	Fri Jun 10 23:19:25 2011 +0300
     1.2 +++ b/src/klibc/time.c	Sun Jun 12 01:46:53 2011 +0300
     1.3 @@ -83,6 +83,7 @@
     1.4  		year++;
     1.5  	}
     1.6  	tm->tm_year = year - 1900;
     1.7 +	tm->tm_yday = days;
     1.8  
     1.9  	leap = is_leap_year(year);
    1.10  	tm->tm_mon = 0;
    1.11 @@ -96,8 +97,6 @@
    1.12  	t %= HOURSEC;
    1.13  	tm->tm_min = t / MINSEC;
    1.14  	tm->tm_sec = t % MINSEC;
    1.15 -
    1.16 -	tm->tm_yday = day_of_year(year, tm->tm_mon, days);
    1.17  	return tm;
    1.18  }
    1.19