From: Nick Mathewson Date: Fri, 22 Jun 2018 17:33:08 +0000 (-0400) Subject: Add another include for windows, and change a log to a raw_assert X-Git-Tag: tor-0.3.5.1-alpha~361^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=145665abcbdb095aba59560db4ea8e3eee012de1;p=thirdparty%2Ftor.git Add another include for windows, and change a log to a raw_assert --- 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 #include @@ -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;