Copy to *DEST from *SRC. Copy only the members needed for mktime, as other members might not be initialized. */
| 2571 | /* Copy to *DEST from *SRC. Copy only the members needed for mktime, |
| 2572 | as other members might not be initialized. */ |
| 2573 | static void |
| 2574 | mktmcpy(struct tm *dest, struct tm const *src) |
| 2575 | { |
| 2576 | dest->tm_sec = src->tm_sec; |
| 2577 | dest->tm_min = src->tm_min; |
| 2578 | dest->tm_hour = src->tm_hour; |
| 2579 | dest->tm_mday = src->tm_mday; |
| 2580 | dest->tm_mon = src->tm_mon; |
| 2581 | dest->tm_year = src->tm_year; |
| 2582 | dest->tm_isdst = src->tm_isdst; |
| 2583 | #if defined TM_GMTOFF && ! UNINIT_TRAP |
| 2584 | dest->TM_GMTOFF = src->TM_GMTOFF; |
| 2585 | #endif |
| 2586 | } |
| 2587 | |
| 2588 | static time_t |
| 2589 | time2sub(struct tm *const tmp, |