1- /*
1+ /*
22
33Copyright (c) 2007-2010 Michael G Schwern
44
@@ -30,7 +30,7 @@ THE SOFTWARE.
3030
3131Programmers who have available to them 64-bit time values as a 'long
3232long' type can use localtime64_r() and gmtime64_r() which correctly
33- converts the time even on 32-bit systems. Whether you have 64-bit time
33+ converts the time even on 32-bit systems. Whether you have 64-bit time
3434values will depend on the operating system.
3535
3636localtime64_r() is a 64-bit equivalent of localtime_r().
@@ -278,7 +278,7 @@ static int check_tm(struct TM *tm)
278278
279279 assert (tm -> tm_wday >= 0 );
280280 assert (tm -> tm_wday <= 6 );
281-
281+
282282 assert (tm -> tm_yday >= 0 );
283283 assert (tm -> tm_yday <= length_of_year [IS_LEAP (tm -> tm_year )]);
284284
@@ -354,7 +354,7 @@ static int safe_year(const Year year)
354354 year_cycle += 17 ;
355355
356356 year_cycle %= SOLAR_CYCLE_LENGTH ;
357- if ( year_cycle < 0 )
357+ if ( year_cycle < 0 )
358358 year_cycle = SOLAR_CYCLE_LENGTH + year_cycle ;
359359
360360 assert ( year_cycle >= 0 );
@@ -651,7 +651,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p)
651651 p -> tm_hour = v_tm_hour ;
652652 p -> tm_mon = v_tm_mon ;
653653 p -> tm_wday = v_tm_wday ;
654-
654+
655655 assert (check_tm (p ));
656656
657657 return p ;
@@ -735,7 +735,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
735735 local_tm -> tm_year ++ ;
736736 }
737737
738- /* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st
738+ /* GMT is Jan 1st, xx01 year, but localtime is still Dec 31st
739739 in a non-leap xx00. There is one point in the cycle
740740 we can't account for which the safe xx00 year is a leap
741741 year. So we need to correct for Dec 31st comming out as
@@ -745,7 +745,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm)
745745 local_tm -> tm_yday -- ;
746746
747747 assert (check_tm (local_tm ));
748-
748+
749749 return local_tm ;
750750}
751751
0 commit comments