diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-05-03 20:57:07 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-05-08 17:59:03 -0500 |
commit | c223377ce60ed07a11e0c3b5af29601722b07bac (patch) | |
tree | 6e7aa694048ee5a2f84a99a42173c7cba577b7fa /src/or/connection.c | |
parent | 5bd2060054095f590559beb57b46c353476084f0 (diff) | |
download | tor-c223377ce60ed07a11e0c3b5af29601722b07bac.tar.gz tor-c223377ce60ed07a11e0c3b5af29601722b07bac.zip |
Make clock_skew_warning() mockable
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index 4361e1ca0c..fa9881cb8b 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -5233,10 +5233,10 @@ connection_free_all(void) * that we had more faith in and therefore the warning level should have higher * severity. */ -void -clock_skew_warning(const connection_t *conn, long apparent_skew, int trusted, - log_domain_mask_t domain, const char *received, - const char *source) +MOCK_IMPL(void, +clock_skew_warning, (const connection_t *conn, long apparent_skew, int trusted, + log_domain_mask_t domain, const char *received, + const char *source)) { char dbuf[64]; char *ext_source = NULL, *warn = NULL; |