diff options
author | Neel Chauhan <neel@neelc.org> | 2018-04-16 20:18:40 -0400 |
---|---|---|
committer | Neel Chauhan <neel@neelc.org> | 2018-04-16 20:37:50 -0400 |
commit | ce84de39efc09142d36d5b94963b1aeb2c0a1ae9 (patch) | |
tree | 396dc15c68a666ab25c69e18133bcc1ad18db973 /src/common/compat_time.c | |
parent | e72742d693827a747ad405eb81422d6ee9fd691b (diff) | |
download | tor-ce84de39efc09142d36d5b94963b1aeb2c0a1ae9.tar.gz tor-ce84de39efc09142d36d5b94963b1aeb2c0a1ae9.zip |
Make tor_gettimeofday() mockable
Diffstat (limited to 'src/common/compat_time.c')
-rw-r--r-- | src/common/compat_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c index b940447b67..966216768f 100644 --- a/src/common/compat_time.c +++ b/src/common/compat_time.c @@ -71,8 +71,8 @@ tor_sleep_msec(int msec) /** Set *timeval to the current time of day. On error, log and terminate. * (Same as gettimeofday(timeval,NULL), but never returns -1.) */ -void -tor_gettimeofday(struct timeval *timeval) +MOCK_IMPL(void, +tor_gettimeofday, (struct timeval *timeval)) { #ifdef _WIN32 /* Epoch bias copied from perl: number of units between windows epoch and |