diff options
Diffstat (limited to 'time64.c')
-rw-r--r-- | time64.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -266,7 +266,7 @@ static int safe_year(Year year) } -void copy_tm_to_TM(const struct tm *src, struct TM *dest) { +void copy_little_tm_to_big_TM(const struct tm *src, struct TM *dest) { if( src == NULL ) { memset(dest, 0, sizeof(*dest)); } @@ -298,7 +298,7 @@ void copy_tm_to_TM(const struct tm *src, struct TM *dest) { } -void copy_TM_to_tm(const struct TM *src, struct tm *dest) { +void copy_big_TM_to_little_tm(const struct TM *src, struct tm *dest) { if( src == NULL ) { memset(dest, 0, sizeof(*dest)); } @@ -382,7 +382,7 @@ struct TM *gmtime64_r (const Time64_T *in_time, struct TM *p) struct tm safe_date; GMTIME_R(&safe_time, &safe_date); - copy_tm_to_TM(&safe_date, p); + copy_little_tm_to_big_TM(&safe_date, p); assert(check_tm(p)); return p; @@ -509,7 +509,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) LOCALTIME_R(&safe_time, &safe_date); - copy_tm_to_TM(&safe_date, local_tm); + copy_little_tm_to_big_TM(&safe_date, local_tm); assert(check_tm(local_tm)); return local_tm; @@ -536,7 +536,7 @@ struct TM *localtime64_r (const Time64_T *time, struct TM *local_tm) return NULL; } - copy_tm_to_TM(&safe_date, local_tm); + copy_little_tm_to_big_TM(&safe_date, local_tm); local_tm->tm_year = orig_year; if( local_tm->tm_year != orig_year ) { |