diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-22 13:33:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-22 13:33:48 -0400 |
commit | 145665abcbdb095aba59560db4ea8e3eee012de1 (patch) | |
tree | 58c30b47d9eea747055b234dd756ef9efd3a583d /src/lib/wallclock | |
parent | 76a717890e6c491d0ecd696687a9ba842f143729 (diff) | |
download | tor-145665abcbdb095aba59560db4ea8e3eee012de1.tar.gz tor-145665abcbdb095aba59560db4ea8e3eee012de1.zip |
Add another include for windows, and change a log to a raw_assert
Diffstat (limited to 'src/lib/wallclock')
-rw-r--r-- | src/lib/wallclock/tor_gettimeofday.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/wallclock/tor_gettimeofday.c b/src/lib/wallclock/tor_gettimeofday.c index 83081d9c98..74a6405720 100644 --- a/src/lib/wallclock/tor_gettimeofday.c +++ b/src/lib/wallclock/tor_gettimeofday.c @@ -12,6 +12,7 @@ #include "orconfig.h" #include "lib/err/torerr.h" #include "lib/wallclock/tor_gettimeofday.h" +#include "lib/cc/torint.h" #include <stddef.h> #include <stdlib.h> @@ -55,8 +56,7 @@ tor_gettimeofday, (struct timeval *timeval)) GetSystemTimeAsFileTime(&ft.ft_ft); if (ft.ft_64 < EPOCH_BIAS) { /* LCOV_EXCL_START */ - log_err(LD_GENERAL,"System time is before 1970; failing."); - exit(1); // exit ok: system clock is broken. + raw_assert_unreached_msg("System time is before 1970; failing."); /* LCOV_EXCL_STOP */ } ft.ft_64 -= EPOCH_BIAS; |