regressions: fix common_gettimeofday.

Accidentally moved code that sets tv_sec/usec outside of tv NULL check.
ck_pring
David Joseph 12 years ago
parent 8c88190557
commit ebc58ede20

@ -149,10 +149,11 @@ common_gettimeofday(struct timeval *tv, void *tz)
/* Windows' epoch starts on 01/01/1601, while Unix' starts on 01/01/1970. */
tmp_time -= DELTA_EPOCH;
tv->tv_sec = (long)(tmp_time / 1000000UL);
tv->tv_usec = (long)(tmp_time % 1000000UL);
}
tv->tv_sec = (long)(tmp_time / 1000000UL);
tv->tv_usec = (long)(tmp_time % 1000000UL);
if (tz != NULL) {
if (tzflag == false) {

Loading…
Cancel
Save