aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-08 11:43:42 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-08 11:44:19 -0400
commit3a280b35ee45a1e4f4edaa3891a13d449d87fa8b (patch)
treef5e14fca3b525ba0386d133404e4d031546a4525 /src
parent8d22c09abf47da229229fe6b5fe355a2da530bef (diff)
downloadtor-3a280b35ee45a1e4f4edaa3891a13d449d87fa8b.tar.gz
tor-3a280b35ee45a1e4f4edaa3891a13d449d87fa8b.zip
Fix a warning about casting the results of GetProcAddress.
Fixes bug 31374; bugfix on 0.2.9.1-alpha.
Diffstat (limited to 'src')
-rw-r--r--src/common/compat_time.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c
index d044bbe1d7..52da609db8 100644
--- a/src/common/compat_time.c
+++ b/src/common/compat_time.c
@@ -443,7 +443,7 @@ monotime_init_internal(void)
HANDLE h = load_windows_system_library(TEXT("kernel32.dll"));
if (h) {
- GetTickCount64_fn = (GetTickCount64_fn_t)
+ GetTickCount64_fn = (GetTickCount64_fn_t) (void(*)(void))
GetProcAddress(h, "GetTickCount64");
}
// FreeLibrary(h) ?
@@ -654,4 +654,3 @@ monotime_coarse_absolute_msec(void)
return monotime_coarse_absolute_nsec() / ONE_MILLION;
}
#endif
-